From: Jérôme Benoit Date: Wed, 20 Sep 2023 17:31:28 +0000 (+0200) Subject: docs: comment worker callback issue on windows X-Git-Tag: v2.7.1~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0cb6edc22251c1cc8a742a99a696144ecc60061f;p=poolifier.git docs: comment worker callback issue on windows Signed-off-by: Jérôme Benoit --- diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 311a56ad..22e65bad 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -100,6 +100,7 @@ export abstract class AbstractWorker< this.checkTaskFunctions(taskFunctions) this.checkWorkerOptions(this.opts) if (!this.isMain) { + // Should be once() but Node.js on windows has a bug that prevents it from working this.getMainWorker().on('message', this.handleReadyMessage.bind(this)) } }