mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Fix socket disconnect might interrupt loop issue
This commit is contained in:
parent
dadcabced1
commit
209534993a
1 changed files with 3 additions and 1 deletions
4
app.js
4
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()) {
|
||||
|
|
Loading…
Reference in a new issue