From: Jérôme Benoit Date: Mon, 7 Jul 2025 19:31:38 +0000 (+0200) Subject: fix: ensure worker kill message response is not handled by the generic X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1b204843dccdb3bf6a41bf6104667867256abe16;p=poolifier.git fix: ensure worker kill message response is not handled by the generic listener Signed-off-by: Jérôme Benoit --- diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 43b1a1d60..59aab3978 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -1331,6 +1331,9 @@ export abstract class AbstractPool< protected readonly workerMessageListener = ( message: MessageValue ): void => { + if (message.kill != null) { + return + } this.checkMessageWorkerId(message) const { ready, taskFunctionsProperties, taskId, workerId } = message if (ready != null && taskFunctionsProperties != null) {