mirror of https://github.com/status-im/codimd.git
Fix retryOnDisconnect and timer not clean up after reconnected
This commit is contained in:
parent
858b30c20c
commit
1df5b4ce49
|
@ -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 New Issue