diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-08-13 17:39:08 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-08-13 18:17:09 +0100 |
commit | f729f1373535015ad51e3e2870de13b7c1350708 (patch) | |
tree | cc40ea2ea157d81bfdea41099c521d6805cf69ba | |
parent | pagination was a terrible name (diff) | |
download | synapse-f729f1373535015ad51e3e2870de13b7c1350708.tar.xz |
don't hammer after 403
-rw-r--r-- | webclient/room/room-controller.js | 5 |
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); } }); }; |