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);
|
emitUserStatus(true);
|
||||||
cursorActivity();
|
cursorActivity();
|
||||||
socket.emit('online users');
|
socket.emit('online users');
|
||||||
|
});
|
||||||
|
socket.on('connect', function (data) {
|
||||||
clearInterval(retryTimer);
|
clearInterval(retryTimer);
|
||||||
retryTimer = null;
|
retryTimer = null;
|
||||||
retryOnDisconnect = false;
|
retryOnDisconnect = false;
|
||||||
});
|
|
||||||
socket.on('connect', function (data) {
|
|
||||||
personalInfo['id'] = socket.id;
|
personalInfo['id'] = socket.id;
|
||||||
showStatus(statusType.connected);
|
showStatus(statusType.connected);
|
||||||
socket.emit('version');
|
socket.emit('version');
|
||||||
|
|
Loading…
Reference in a new issue