From: Jérôme Benoit Date: Tue, 11 Oct 2022 19:14:30 +0000 (+0200) Subject: Strict boolean check X-Git-Tag: v2.3.1~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0f3efafd05a3fa733a0f49c336f42cc61ab52e6a;p=poolifier.git Strict boolean check Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 349940fa..9b170330 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -65,7 +65,7 @@ export abstract class AbstractWorker< this.checkWorkerOptions(this.opts) this.lastTaskTimestamp = Date.now() // Keep the worker active - if (!isMain) { + if (isMain === false) { this.aliveInterval = setInterval( this.checkAlive.bind(this), (this.opts.maxInactiveTime ?? DEFAULT_MAX_INACTIVE_TIME) / 2