From 5409d2369f98a230562f9fd99241f2857c7c48b8 Mon Sep 17 00:00:00 2001 From: Artyom Abubakirov Date: Wed, 15 Aug 2018 21:25:10 +0500 Subject: [PATCH] Fix reloading when stream not active --- static/js/index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 {