From 0186e14eb2b4c1bf187252bacd61b0ebfb9bab07 Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sat, 11 Jul 2026 10:53:03 +0800 Subject: [PATCH] fix: add sleep to show update errors before reboot --- gate.lua | 4 ++++ ticketmachine.lua | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gate.lua b/gate.lua index 187ee43..fef270b 100644 --- a/gate.lua +++ b/gate.lua @@ -168,6 +168,10 @@ local function checkAndApplyUpdate() isUpdating = false pcall(drawReadyScreen) + if lastUpdateError then + sleep(3) + end + -- Reboot os.reboot() end diff --git a/ticketmachine.lua b/ticketmachine.lua index ed0330a..a8bebe6 100644 --- a/ticketmachine.lua +++ b/ticketmachine.lua @@ -750,6 +750,10 @@ local function checkAndApplyUpdate() isUpdating = false pcall(drawVersionIndicator) + if lastUpdateError then + sleep(3) + end + os.reboot() end