X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Ffixed.ts;h=7753d1d60cb21910a5f871338889023ef4de12c1;hb=761b0c73be0bf581f50a78123913f933bd405f52;hp=3dc10821e2cdb9198e3eea62e287a4fc4d8aa425;hpb=56960396878dec81e3ebeea5b76387efca8cc2dc;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index 3dc10821..7753d1d6 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -68,10 +68,10 @@ export class FixedThreadPool< /** @inheritDoc */ protected registerWorkerMessageListener( - messageChannel: ThreadWorkerWithMessageChannel, + worker: ThreadWorkerWithMessageChannel, listener: (message: MessageValue) => void ): void { - messageChannel.port2?.on('message', listener) + worker.port2?.on('message', listener) } /** @inheritDoc */