summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-08-13 17:39:08 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-08-13 18:17:09 +0100
commitf729f1373535015ad51e3e2870de13b7c1350708 (patch)
treecc40ea2ea157d81bfdea41099c521d6805cf69ba /webclient
parentpagination was a terrible name (diff)
downloadsynapse-f729f1373535015ad51e3e2870de13b7c1350708.tar.xz
don't hammer after 403
Diffstat (limited to 'webclient')
-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);
                 }
             });
     };