When getting an invalid update, hard-reload instead of trying to wait (which messes...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 15 Nov 2016 18:10:47 +0000 (19:10 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 15 Nov 2016 18:10:47 +0000 (19:10 +0100)
www/js/remoteglot.js

index 05ae295..b049c32 100644 (file)
@@ -7,7 +7,7 @@
  * @type {Number}
  * @const
  * @private */
-var SCRIPT_VERSION = 2016032202;
+var SCRIPT_VERSION = 2016091401;
 
 /**
  * The current backend URL.
@@ -297,7 +297,7 @@ var request_update = function() {
                        update_num_viewers(num_viewers);
                } else {
                        console.log("Received invalid update, waiting five seconds and trying again.");
-                       timeout = 5000;
+                       location.reload(true);
                }
 
                // Next update.