summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/index.js b/public/js/index.js
index b9ab7175..38882949 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -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');