possible fix for #1467

This commit is contained in:
barisusakli
2014-05-01 19:01:19 -04:00
parent dea4b78cb9
commit 936530dc48

View File

@@ -117,7 +117,7 @@ var socket,
});
socket.on('reconnecting', function (data, attempt) {
if(attempt === config.maxReconnectionAttempts) {
if(attempt === parseInt(config.maxReconnectionAttempts, 10)) {
socket.socket.reconnectionAttempts = 0;
socket.socket.reconnectionDelay = config.reconnectionDelay;
return;