Explorar o código

Small change that might fix Cameron's issues.

KrisVos130 %!s(int64=8) %!d(string=hai) anos
pai
achega
e984509af8
Modificáronse 1 ficheiros con 1 adicións e 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();