fix: add sleep to show update errors before reboot
This commit is contained in:
@@ -168,6 +168,10 @@ local function checkAndApplyUpdate()
|
|||||||
isUpdating = false
|
isUpdating = false
|
||||||
pcall(drawReadyScreen)
|
pcall(drawReadyScreen)
|
||||||
|
|
||||||
|
if lastUpdateError then
|
||||||
|
sleep(3)
|
||||||
|
end
|
||||||
|
|
||||||
-- Reboot
|
-- Reboot
|
||||||
os.reboot()
|
os.reboot()
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -750,6 +750,10 @@ local function checkAndApplyUpdate()
|
|||||||
isUpdating = false
|
isUpdating = false
|
||||||
pcall(drawVersionIndicator)
|
pcall(drawVersionIndicator)
|
||||||
|
|
||||||
|
if lastUpdateError then
|
||||||
|
sleep(3)
|
||||||
|
end
|
||||||
|
|
||||||
os.reboot()
|
os.reboot()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user