X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=ede0b3b5602f6335e2fc0c3409a719fd5edbf5b6;hb=6703b9f4492e347500111c42ffddbd8341c8f262;hp=8d30ef21a8874dcfb6802e2436a7d6033a4fa8ec;hpb=6dbb424126c4b14224eff85c4823f6a57a0e425c;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index 8d30ef21..ede0b3b5 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -62,13 +62,13 @@ export class ThreadWorker< this.port.on('message', this.messageListener.bind(this)) this.sendToMainWorker({ ready: true, - taskFunctions: this.listTaskFunctions(), + taskFunctionNames: this.listTaskFunctionNames(), workerId: this.id }) } catch { this.sendToMainWorker({ ready: false, - taskFunctions: this.listTaskFunctions(), + taskFunctionNames: this.listTaskFunctionNames(), workerId: this.id }) }