diff --git a/Signaling-Server.js b/Signaling-Server.js index b3ac90a2..554fa630 100755 --- a/Signaling-Server.js +++ b/Signaling-Server.js @@ -160,7 +160,7 @@ module.exports = exports = function(app, socketCallback) { } try { - if (listOfUsers[socket.userid] && listOfUsers[socket.userid].socket.id == socket.userid) { + if (listOfUsers[socket.userid] && listOfUsers[socket.userid].socket.userid == socket.userid) { if (newUserId === socket.userid) return; var oldUserId = socket.userid;