Merge pull request #99 from fomaper/fix/desktop-restart-inflight-window

fix(desktop): 重启脚本 inflight 窗口 180s,重启后面板 3 分钟无响应
This commit is contained in:
叫我小杨同学 authored and GitHub committed 2026-10-11 15:34:05 +08:00
commit 1863a4b1e4
1 file changed
+3 -1
+3 -1
View File
@@ -1309,7 +1309,9 @@ function officialRestartScript(exe, asar, dshHome) {
"log('started');",
"}",
"}",
"WScript.Sleep(180000);",
// Keep the inflight window just long enough to cover a cold client start;
// the original 180s left the panel unresponsive for 3 minutes after every restart.
"WScript.Sleep(45000);",
"try { if (fso.FileExists(" + jsString(path.join(os.tmpdir(), "dsh-purge-official-restarting")) + ")) fso.DeleteFile(" + jsString(path.join(os.tmpdir(), "dsh-purge-official-restarting")) + ", true); } catch (ignoreFlag) {}",
"",
].join("\r\n");