X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fabstract-worker.ts;h=d0803b8da98d59ca9018cd190d6020d871dfad2e;hb=1cc6e9ef64f399f4ca58da8079ef72a011ac4227;hp=22e65bad63d213aa6b1bda6f0adc6a2a76401873;hpb=0cb6edc22251c1cc8a742a99a696144ecc60061f;p=poolifier.git diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 22e65bad..d0803b8d 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -374,7 +374,7 @@ export abstract class AbstractWorker< (this.opts.killHandler?.() as Promise) .then(() => { this.sendToMainWorker({ kill: 'success' }) - return null + return undefined }) .catch(() => { this.sendToMainWorker({ kill: 'failure' })