diff --git a/static/js/index.js b/static/js/index.js index 6fc7797..83bc5ad 100755 --- a/static/js/index.js +++ b/static/js/index.js @@ -54,7 +54,7 @@ $(function() { } else { console.log('timerInterceptor is false'); } - }, 1000); + }, 3000); }); socket.on('disconnect', function(data){ @@ -92,10 +92,6 @@ $(function() { socket.on('streamEnded', function(data) { dispose(); }); - - socket.on('ping', function(data) { - console.log('ping'); - }); }); function presenterResponse(message) { @@ -111,6 +107,7 @@ function presenterResponse(message) { function viewerResponse(message) { if (message.response != 'accepted') { var errorMsg = message.message ? message.message : 'Unknown error'; + timerInterceptor = false; console.warn('Call not accepted for the following reason: ' + errorMsg); dispose(); } else {