From 97b7f0707f1a95ce3e70f5e29c43f502d1fc6938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bartelme=C3=9F?= Date: Thu, 16 Feb 2012 23:35:00 +0100 Subject: [PATCH] Add further checks to make sure sessioninfos[sessionID] is !== undefined --- node/handler/PadMessageHandler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/handler/PadMessageHandler.js b/node/handler/PadMessageHandler.js index c7cffaa3f..a93c79da7 100644 --- a/node/handler/PadMessageHandler.js +++ b/node/handler/PadMessageHandler.js @@ -887,7 +887,9 @@ function handleClientReady(client, message) function (callback) { //Jump over, if this session is the connection session - if(sessionID != client.id && socketio.sockets.sockets[sessionID] !== undefined) + if(sessionID != client.id && + socketio.sockets.sockets[sessionID] !== undefined && + sessioninfos[sessionID] !== undefined) { //Send this Session the Notification about the new user socketio.sockets.sockets[sessionID].json.send(messageToTheOtherUsers);