Explorar el Código

Small change that might fix Cameron's issues.

KrisVos130 hace 8 años
padre
commit
e984509af8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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();