Fix reloading when stream not active
This commit is contained in:
1 parent
181b51e7de
commit
5409d2369f
1 file changed
+2
-5
+2
-5
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user