fix reload loop for guests

This commit is contained in:
Julian Lam
2017-08-23 19:30:30 -04:00
parent cdd139b327
commit a67a0b0a08

View File

@@ -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();