From 0ed864c7d3e3a48c9cbfdb4fcbba495504312f9d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 25 Jan 2019 18:28:51 +0100 Subject: [PATCH] Fix error --- sockets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}