fix: unref check active interval
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Jul 2023 14:17:51 +0000 (16:17 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 14 Jul 2023 14:17:51 +0000 (16:17 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts

index 1b8a673c2a78d461288bc6c4f30fa8eb5a942285..3adc56d13ee3d5aa4be402cd38dd179bc05ec594 100644 (file)
@@ -317,7 +317,7 @@ export abstract class AbstractWorker<
     this.activeInterval = setInterval(
       this.checkActive.bind(this),
       (this.opts.maxInactiveTime ?? DEFAULT_MAX_INACTIVE_TIME) / 2
-    )
+    ).unref()
   }
 
   /**