From d7277838e4e2834a2a1d91ff7dcad0d9b028695f Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Wed, 21 Apr 2021 01:25:00 +0200 Subject: [PATCH] Fix small bug: no new countdown will be started if a countdown is already running --- Logic/Actors/UpdateFromOverpass.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Logic/Actors/UpdateFromOverpass.ts b/Logic/Actors/UpdateFromOverpass.ts index c75239a..370da70 100644 --- a/Logic/Actors/UpdateFromOverpass.ts +++ b/Logic/Actors/UpdateFromOverpass.ts @@ -125,7 +125,12 @@ export default class UpdateFromOverpass implements FeatureSource { private update(): void { if (this.runningQuery.data) { - console.log("Still running a query, skip"); + console.log("Still running a query, not updating"); + return; + } + + if(this.timeout.data > 0){ + console.log("Still in timeout - not updating") return; }