Skip to content

Commit 5214130

Browse files
committed
fix: ensure worker kill message response is not handled by the generic listener
Signed-off-by: Jérôme Benoit <[email protected]>
1 parent e1fbde5 commit 5214130

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pools/abstract-pool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,6 +2088,9 @@ export abstract class AbstractPool<
20882088
protected readonly workerMessageListener = (
20892089
message: MessageValue<Response>,
20902090
): void => {
2091+
if (message.kill != null) {
2092+
return
2093+
}
20912094
this.checkMessageWorkerId(message)
20922095
const { workerId, ready, taskId, taskFunctionsProperties } = message
20932096
if (ready != null && taskFunctionsProperties != null) {

0 commit comments

Comments
 (0)