summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 5d1c65641e..a30f46baf8 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -69,11 +69,14 @@ angular.module('RoomController', [])
                 }
             }, function(response) {
                 $scope.feedback = "Can't stream: " + JSON.stringify(response);
+                if (response.status == 403) {
+                    $scope.stopPoll = true;
+                }
                 if ($scope.stopPoll) {
                     console.log("Stopping polling.");
                 }
                 else {
-                    $timeout(shortPoll, 2000);
+                    $timeout(shortPoll, 5000);
                 }
             });
     };