summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app.js b/app.js
index c0c554c4..9e4d54e7 100644
--- a/app.js
+++ b/app.js
@@ -506,7 +506,9 @@ process.on('SIGINT', function () {
var socket = io.sockets.sockets[key];
// notify client server going into maintenance status
socket.emit('maintenance');
- socket.disconnect(true);
+ setTimeout(function () {
+ socket.disconnect(true);
+ }, 0);
});
var checkCleanTimer = setInterval(function () {
if (history.isReady() && realtime.isReady()) {