:3
This commit is contained in:
parent
aa17150f8e
commit
3dc1abea4e
|
@ -32,8 +32,11 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
|
|||
file.close()
|
||||
os.reboot()
|
||||
end
|
||||
print("Bad file download (core)")
|
||||
end
|
||||
print("Bad mem read (core)")
|
||||
end
|
||||
print("Bad download (core)")
|
||||
end
|
||||
end
|
||||
function mod.UpdateChecker()
|
||||
|
@ -168,10 +171,11 @@ rawset(__BUNDLER_FILES, "ui.lua", function ()
|
|||
btnX = 1
|
||||
end
|
||||
end
|
||||
local status, _ = pcall(function ()
|
||||
local status, err = pcall(function ()
|
||||
parallel.waitForAll(basalt.autoUpdate, updater.updateChecker)
|
||||
end)
|
||||
if not status then
|
||||
print("Error detected: " .. err)
|
||||
monitor.clear()
|
||||
fs.delete("basalt.lua")
|
||||
fs.delete("startup.lua")
|
||||
|
|
|
@ -109,11 +109,12 @@ function mod.InitUi()
|
|||
|
||||
end
|
||||
|
||||
local status, _ = pcall(function ()
|
||||
local status, err = pcall(function ()
|
||||
parallel.waitForAll(basalt.autoUpdate, updater.updateChecker)
|
||||
end)
|
||||
|
||||
if not status then
|
||||
print("Error detected: " .. err)
|
||||
monitor.clear()
|
||||
fs.delete("basalt.lua")
|
||||
fs.delete("startup.lua")
|
||||
|
|
|
@ -25,8 +25,11 @@ local function checkForUpdate()
|
|||
file.close()
|
||||
os.reboot()
|
||||
end
|
||||
print("Bad file download (core)")
|
||||
end
|
||||
print("Bad mem read (core)")
|
||||
end
|
||||
print("Bad download (core)")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user