Fix reloading when stream not active
This commit is contained in:
parent
181b51e7de
commit
5409d2369f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user