X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=7b030cab1cf491d9aa786fdad89aec19164ae702;hb=026c621f8c912aba3f53be9057078eefe9c92c6f;hp=f4581cf72644032c0b4a6515e1320c7926648222;hpb=d35c6f46dc92565c54213c4ea17c67f0e0938531;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index f4581cf..7b030ca 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1226,6 +1226,9 @@ let update_board = function() { return; } + if (clock_timer !== null) { + clearTimeout(clock_timer); + } update_clock(); // The score. @@ -1497,7 +1500,7 @@ let update_num_viewers = function(num_viewers) { } let update_clock = function() { - clearTimeout(clock_timer); + clock_timer = null; let data = displayed_analysis_data || current_analysis_data; if (!data) return;