mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
possible fix for #1467
This commit is contained in:
@@ -117,7 +117,7 @@ var socket,
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('reconnecting', function (data, attempt) {
|
socket.on('reconnecting', function (data, attempt) {
|
||||||
if(attempt === config.maxReconnectionAttempts) {
|
if(attempt === parseInt(config.maxReconnectionAttempts, 10)) {
|
||||||
socket.socket.reconnectionAttempts = 0;
|
socket.socket.reconnectionAttempts = 0;
|
||||||
socket.socket.reconnectionDelay = config.reconnectionDelay;
|
socket.socket.reconnectionDelay = config.reconnectionDelay;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user