mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 04:50:22 +08:00
Merge pull request #99 from fomaper/fix/desktop-restart-inflight-window
fix(desktop): 重启脚本 inflight 窗口 180s,重启后面板 3 分钟无响应
This commit is contained in:
1 file changed
+3
-1
+3
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user