aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/interval_utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/interval_utils.ts')
-rw-r--r--src/utils/interval_utils.ts2
1 files changed, 1 insertions, 1 deletions
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<void>, intervalMs: number) {
const intervalId = setInterval(async () => {
- if (_.isUndefined(this.mutex[intervalId])) {
+ if (!_.isUndefined(this.mutex[intervalId])) {
return;
} else {
this.mutex[intervalId] = true;