mirror of
https://gitlab.com/comunic/nodejs-webrtcsignalexchangerserver
synced 2024-12-25 04:58:58 +00:00
Fix error
This commit is contained in:
parent
b12a28c4d0
commit
0ed864c7d3
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user