Fix reloading when stream not active
This commit is contained in:
parent
181b51e7de
commit
5409d2369f
@ -54,7 +54,7 @@ $(function() {
|
|||||||
} else {
|
} else {
|
||||||
console.log('timerInterceptor is false');
|
console.log('timerInterceptor is false');
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 3000);
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('disconnect', function(data){
|
socket.on('disconnect', function(data){
|
||||||
@ -92,10 +92,6 @@ $(function() {
|
|||||||
socket.on('streamEnded', function(data) {
|
socket.on('streamEnded', function(data) {
|
||||||
dispose();
|
dispose();
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('ping', function(data) {
|
|
||||||
console.log('ping');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function presenterResponse(message) {
|
function presenterResponse(message) {
|
||||||
@ -111,6 +107,7 @@ function presenterResponse(message) {
|
|||||||
function viewerResponse(message) {
|
function viewerResponse(message) {
|
||||||
if (message.response != 'accepted') {
|
if (message.response != 'accepted') {
|
||||||
var errorMsg = message.message ? message.message : 'Unknown error';
|
var errorMsg = message.message ? message.message : 'Unknown error';
|
||||||
|
timerInterceptor = false;
|
||||||
console.warn('Call not accepted for the following reason: ' + errorMsg);
|
console.warn('Call not accepted for the following reason: ' + errorMsg);
|
||||||
dispose();
|
dispose();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user