mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-13 13:07:12 +00:00
v2.2.4: Fix notification setting bypass and misleading reconnect message
- EVENTS.ERROR handler now respects browserNotifications setting - Graceful shutdown message no longer implies manual reconnect
This commit is contained in:
+1
-1
@@ -797,7 +797,7 @@ export function startServer(port = PORT, host) {
|
||||
function gracefulShutdown(signal) {
|
||||
log('SERVER', `${signal} received — starting graceful shutdown...`);
|
||||
// 1. Notify all connected clients so they can display a meaningful message
|
||||
io.emit(EVENTS.ERROR, { message: 'Server is restarting. Please reconnect in a moment.' });
|
||||
io.emit(EVENTS.ERROR, { message: 'Server is restarting. Reconnecting automatically...' });
|
||||
// 2. Stop accepting new HTTP connections
|
||||
httpServer.close(() => {
|
||||
log('SERVER', 'HTTP server closed. Exiting.');
|
||||
|
||||
Reference in New Issue
Block a user