From: Jérôme Benoit Date: Fri, 14 Jul 2023 14:17:51 +0000 (+0200) Subject: fix: unref check active interval X-Git-Tag: v2.6.17~19 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b55c265cc17e0bec14672a2fe083da81d28e4c65;p=poolifier.git fix: unref check active interval Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 1b8a673c..3adc56d1 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -317,7 +317,7 @@ export abstract class AbstractWorker< this.activeInterval = setInterval( this.checkActive.bind(this), (this.opts.maxInactiveTime ?? DEFAULT_MAX_INACTIVE_TIME) / 2 - ) + ).unref() } /**