diff --git a/public/js/chat.js b/public/js/chat.js index 4c41278..87c882e 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -204,7 +204,7 @@ var VideoChat = { break; case "disconnected": // First possibility: we disconnected from the peer - if (VideoChat.socket.connect().connected === false) { + if (VideoChat.socket.connected === false) { location.reload(); }