Fix small bug: no new countdown will be started if a countdown is already running
This commit is contained in:
parent
33ebc6b9c4
commit
d7277838e4
1 changed files with 6 additions and 1 deletions
|
@ -125,7 +125,12 @@ export default class UpdateFromOverpass implements FeatureSource {
|
||||||
|
|
||||||
private update(): void {
|
private update(): void {
|
||||||
if (this.runningQuery.data) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue