浏览代码

Small change that might fix Cameron's issues.

KrisVos130 8 年之前
父节点
当前提交
e984509af8
共有 1 个文件被更改,包括 1 次插入0 次删除
  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();