From e961331f0f08ba475f53599442c0d330bd520c91 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 3 Sep 2019 23:06:28 +0200 Subject: [PATCH] When something goes wrong, actually wait five seconds instead of DoSing the backend. --- www/js/remoteglot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 01faf1a..3d52906 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -7,7 +7,7 @@ * @type {Number} * @const * @private */ -var SCRIPT_VERSION = 2016113007; +var SCRIPT_VERSION = 2016113008; /** * The current backend URL. @@ -294,7 +294,7 @@ var request_update = function() { update_num_viewers(num_viewers); } else { console.log("Received invalid update, waiting five seconds and trying again."); - location.reload(true); + setTimeout(function() { location.reload(true); }, 5000); } // Next update. -- 2.39.2