X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fworker-node.ts;h=523036a5eac6f57db2966131652b29da6423fea1;hb=eceaf36f69c97b0376194a849e77f6ea15fb8f7b;hp=308215176edb515851c2349ba550d3cc50e2611b;hpb=3ffc32ec66a9c48f39a1b976ebd88cea53824679;p=poolifier.git diff --git a/src/pools/worker-node.ts b/src/pools/worker-node.ts index 30821517..523036a5 100644 --- a/src/pools/worker-node.ts +++ b/src/pools/worker-node.ts @@ -137,6 +137,7 @@ export class WorkerNode this.removeAllListeners() switch (this.info.type) { case WorkerTypes.thread: + this.worker.unref?.() await this.worker.terminate?.() break case WorkerTypes.cluster: