don't hammer after 403
This commit is contained in:
parent
b80b32d1c0
commit
f729f13735
|
@ -69,11 +69,14 @@ angular.module('RoomController', [])
|
||||||
}
|
}
|
||||||
}, function(response) {
|
}, function(response) {
|
||||||
$scope.feedback = "Can't stream: " + JSON.stringify(response);
|
$scope.feedback = "Can't stream: " + JSON.stringify(response);
|
||||||
|
if (response.status == 403) {
|
||||||
|
$scope.stopPoll = true;
|
||||||
|
}
|
||||||
if ($scope.stopPoll) {
|
if ($scope.stopPoll) {
|
||||||
console.log("Stopping polling.");
|
console.log("Stopping polling.");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$timeout(shortPoll, 2000);
|
$timeout(shortPoll, 5000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue