diff --git a/Logic/Osm/OsmConnection.ts b/Logic/Osm/OsmConnection.ts index 92a0823f65..bc81c7b05f 100644 --- a/Logic/Osm/OsmConnection.ts +++ b/Logic/Osm/OsmConnection.ts @@ -249,8 +249,13 @@ export class OsmConnection { }); } + private isChecking = false; private CheckForMessagesContinuously(){ const self =this; + if(this.isChecking){ + return; + } + this.isChecking = true; UIEventSource.Chronic(5 * 60 * 1000).addCallback(_ => { if (self.isLoggedIn .data) { console.log("Checking for messages")