From: Steinar H. Gunderson Date: Thu, 29 Dec 2022 19:28:11 +0000 (+0100) Subject: Stop the barrage of clock timer events if one of the players went out on time. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=bc85487cf68dcf5c4d4ee0f4db8e64aa255309dd Stop the barrage of clock timer events if one of the players went out on time. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 42990ad..15ea31c 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1598,7 +1598,7 @@ function update_clock() { // This matches what DGT clocks do. let show_seconds = (white_clock_ms < 60 * 20 * 1000 || black_clock_ms < 60 * 20 * 1000); - if (color) { + if (color && remaining_ms > 0) { // See when the clock will change next, and update right after that. let next_update_ms; if (show_seconds) {