File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments