made a if statement more secure
This commit is contained in:
parent
aa5b1b85ae
commit
86e81a1648
|
@ -85,7 +85,7 @@ exports.handleDisconnect = function(client)
|
||||||
var sessionPad=session2pad[client.id];
|
var sessionPad=session2pad[client.id];
|
||||||
|
|
||||||
//if this connection was already etablished with a handshake, send a disconnect message to the others
|
//if this connection was already etablished with a handshake, send a disconnect message to the others
|
||||||
if(sessioninfos[client.id].author)
|
if(sessioninfos[client.id] && sessioninfos[client.id].author)
|
||||||
{
|
{
|
||||||
var author = sessioninfos[client.id].author;
|
var author = sessioninfos[client.id].author;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue