Fixed potential stalls in javascript.

This commit is contained in:
Chris Davoren 2023-11-08 08:25:05 +10:00
parent 41023d7d97
commit bf4cb09063
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,7 @@
if (this.status !== 200) if (this.status !== 200)
{ {
console.log("Failed update: status " + this.status); console.log("Failed update: status " + this.status);
isSending = false;
return; return;
} }
let static_path_prefix = "/images/"; let static_path_prefix = "/images/";
@ -144,6 +145,7 @@
catch (err) catch (err)
{ {
console.dir(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 // Important note: Due to marginal overshoot of scheduled timing, it is possible for time-remaining to be very slightly negative