Skip to content

Node.js based forum software built for the modern web

fix reload loop for guests

Julian Lama67a0b0a0829
diff --git a/public/src/sockets.js b/public/src/sockets.js
index 7d7fca3d9f..d7b058977f 100644
--- a/public/src/sockets.js
+++ b/public/src/sockets.js
@@ -29,7 +29,7 @@ app.isConnected = false;
});
socket.on('checkSession', function (uid, remoteExist) {
- if (parseInt(uid, 10) !== parseInt(app.user.uid, 10) && remoteExist) {
+ if (parseInt(uid, 10) !== parseInt(app.user.uid, 10) && (uid !== 0 && remoteExist)) {
app.handleInvalidSession();
} else {
app.logout();