Skip to content

Commit

Permalink
fix(simulator): register worker_threads exit handler once
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
Jérôme Benoit committed Sep 20, 2023
1 parent 23f512d commit ae3a41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/WorkerSet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class WorkerSet extends WorkerAbstract<WorkerData> {
for (const workerSetElement of this.workerSet) {
const worker = workerSetElement.worker;
const waitWorkerExit = new Promise<void>((resolve) => {
worker.on('exit', () => {
worker.once('exit', () => {
resolve();
});
});
Expand Down

0 comments on commit ae3a41a

Please sign in to comment.