Przeglądaj źródła

Small change that might fix Cameron's issues.

KrisVos130 8 lat temu
rodzic
commit
e984509af8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      backend/logic/io.js

+ 1 - 0
backend/logic/io.js

@@ -20,6 +20,7 @@ module.exports = {
 			let cookies = socket.request.headers.cookie;
 			let SID = utils.cookies.parseCookies(cookies).SID;
 
+			if (!SID) SID = "NONE";
 			cache.hget('userSessions', SID, (err, userSession) => {
 				if (err) SID = null;
 				let sessionId = utils.guid();