Skip to content

Node.js based forum software built for the modern web

possible fix for #1467

barisusakli936530dc4829
diff --git a/public/src/app.js b/public/src/app.js
index 79dce1df9a..6f768c2596 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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;