Skip to content

Commit 42fa95b

Browse files
committed
exit
1 parent e7c89db commit 42fa95b

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

monitor/api/static/main.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,10 @@ async function shutdownServer() {
9090
return;
9191
} catch (postErr) {
9292
// Network error when posting — server may have terminated before sending a response.
93-
try { modal.setText('No response from server — waiting for shutdown...'); } catch (e) {}
94-
// Poll to confirm server is down
95-
const stopped = await waitForServerStop(60, 1000);
93+
// Immediately proceed to the final page rather than showing an intermediate "waiting" message.
9694
try { modal.remove(); } catch (e) {}
97-
if (stopped) {
98-
showServerStoppedPage(true);
99-
} else {
100-
// couldn't confirm; show message and re-enable Exit button
101-
showServerStoppedPage(false);
102-
if (btn) { btn.disabled = false; btn.textContent = 'Exit'; }
103-
}
95+
// Show final stopped page (assume server is stopping/has stopped)
96+
try { showServerStoppedPage(true); } catch (e) { console.debug('showServerStoppedPage error', e); }
10497
return;
10598
}
10699
} catch (e) {

0 commit comments

Comments
 (0)