From bc85487cf68dcf5c4d4ee0f4db8e64aa255309dd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 29 Dec 2022 20:28:11 +0100 Subject: [PATCH] Stop the barrage of clock timer events if one of the players went out on time. --- www/js/remoteglot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2