diff --git a/sockets.js b/sockets.js index d24f6fd..2f97fbb 100644 --- a/sockets.js +++ b/sockets.js @@ -175,7 +175,7 @@ exports.addSocket = function(socket){ } //Check if the client wants to send a ready signal to another client - else if(data.ready_msg, data.target_id){ + else if(data.ready_msg && data.target_id){ if(typeof data.target_id !== "string"){ SendMessageToSocket(socket, { @@ -229,4 +229,4 @@ exports.addSocket = function(socket){ RemoveSocketFromList(socket); } }); -} \ No newline at end of file +}