From b1feb5ac29bf2dbe424a5485eb3e48e90c08ba94 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 6 Sep 2017 17:49:51 +0200 Subject: Fix a bug in intervalUtils --- src/utils/interval_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/interval_utils.ts b/src/utils/interval_utils.ts index 23e6acc5b..6bcf5a643 100644 --- a/src/utils/interval_utils.ts +++ b/src/utils/interval_utils.ts @@ -4,7 +4,7 @@ export class IntervalUtils { private mutex: {[intervalId: number]: boolean} = {}; public setAsyncExcludingInterval(fn: () => Promise, intervalMs: number) { const intervalId = setInterval(async () => { - if (_.isUndefined(this.mutex[intervalId])) { + if (!_.isUndefined(this.mutex[intervalId])) { return; } else { this.mutex[intervalId] = true; -- cgit