diff --git a/lib/desktop.js b/lib/desktop.js index df58ac3..8873e98 100644 --- a/lib/desktop.js +++ b/lib/desktop.js @@ -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");