mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Fix retryOnDisconnect and timer not clean up after reconnected
This commit is contained in:
parent
858b30c20c
commit
1df5b4ce49
1 changed files with 2 additions and 2 deletions
|
@ -2105,11 +2105,11 @@ socket.on('reconnect', function (data) {
|
|||
emitUserStatus(true);
|
||||
cursorActivity();
|
||||
socket.emit('online users');
|
||||
});
|
||||
socket.on('connect', function (data) {
|
||||
clearInterval(retryTimer);
|
||||
retryTimer = null;
|
||||
retryOnDisconnect = false;
|
||||
});
|
||||
socket.on('connect', function (data) {
|
||||
personalInfo['id'] = socket.id;
|
||||
showStatus(statusType.connected);
|
||||
socket.emit('version');
|
||||
|
|
Loading…
Reference in a new issue