From f729f1373535015ad51e3e2870de13b7c1350708 Mon Sep 17 00:00:00 2001
From: Matthew Hodgson <matthew@matrix.org>
Date: Wed, 13 Aug 2014 17:39:08 +0100
Subject: [PATCH] don't hammer after 403

---
 webclient/room/room-controller.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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);
                 }
             });
     };
-- 
GitLab