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