Fix error

This commit is contained in:
Pierre HUBERT 2019-01-25 18:28:51 +01:00
parent b12a28c4d0
commit 0ed864c7d3

View File

@ -175,7 +175,7 @@ exports.addSocket = function(socket){
} }
//Check if the client wants to send a ready signal to another client //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"){ if(typeof data.target_id !== "string"){
SendMessageToSocket(socket, { SendMessageToSocket(socket, {
@ -229,4 +229,4 @@ exports.addSocket = function(socket){
RemoveSocketFromList(socket); RemoveSocketFromList(socket);
} }
}); });
} }