Add further checks to make sure sessioninfos[sessionID] is !== undefined
This commit is contained in:
parent
bad920e28d
commit
97b7f0707f
|
@ -887,7 +887,9 @@ function handleClientReady(client, message)
|
||||||
function (callback)
|
function (callback)
|
||||||
{
|
{
|
||||||
//Jump over, if this session is the connection session
|
//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
|
//Send this Session the Notification about the new user
|
||||||
socketio.sockets.sockets[sessionID].json.send(messageToTheOtherUsers);
|
socketio.sockets.sockets[sessionID].json.send(messageToTheOtherUsers);
|
||||||
|
|
Loading…
Reference in New Issue