From 24c235e36045bc853d709ca3342d9dca9c030f45 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 24 Jul 2013 09:16:10 -0400 Subject: [PATCH] fixed #128 - regression caused by removal of 'connect' package --- src/websockets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websockets.js b/src/websockets.js index b9d07a79d7..1e3232ec4b 100644 --- a/src/websockets.js +++ b/src/websockets.js @@ -42,7 +42,7 @@ var SocketIO = require('socket.io').listen(global.server, { log:false }), socketCookieParser(hs, {}, function(err) { sessionID = socket.handshake.signedCookies["express.sid"]; RedisStore.get(sessionID, function(err, sessionData) { - if (!err && sessionData) uid = users[sessionID] = sessionData.passport.user; + if (!err && sessionData.passport.user) uid = users[sessionID] = sessionData.passport.user; else uid = users[sessionID] = 0; userSockets[uid] = userSockets[uid] || [];