From bf4cb0906352ed083ca6ebd87407feeb51556290 Mon Sep 17 00:00:00 2001 From: Chris Davoren Date: Wed, 8 Nov 2023 08:25:05 +1000 Subject: [PATCH] Fixed potential stalls in javascript. --- TrafficLights/Pages/Index.cshtml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TrafficLights/Pages/Index.cshtml b/TrafficLights/Pages/Index.cshtml index 837d9ad..06c38e4 100644 --- a/TrafficLights/Pages/Index.cshtml +++ b/TrafficLights/Pages/Index.cshtml @@ -98,6 +98,7 @@ if (this.status !== 200) { console.log("Failed update: status " + this.status); + isSending = false; return; } let static_path_prefix = "/images/"; @@ -144,6 +145,7 @@ catch (err) { console.dir(err); + isSending = false; } } // Important note: Due to marginal overshoot of scheduled timing, it is possible for time-remaining to be very slightly negative