Skip to content

Commit

Permalink
fix: flag worker set as stopped as soon the stopped event is emitted
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Benoit <[email protected]>
  • Loading branch information
jerome-benoit committed Feb 11, 2024
1 parent b1396a2 commit 36c1166
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 @@ -97,9 +97,9 @@ export class WorkerSet extends WorkerAbstract<WorkerData> {
await waitWorkerExit
}
this.emitter?.emit(WorkerSetEvents.stopped, this.info)
this.started = false
this.emitter?.emitDestroy()
this.emitter?.removeAllListeners()
this.started = false
}

/** @inheritDoc */

Check warning on line 105 in src/worker/WorkerSet.ts

View workflow job for this annotation

GitHub Actions / Build simulator with Node 20.x on ubuntu-latest

tsdoc-inline-tag-missing-braces: The TSDoc tag "@inheritdoc" is an inline tag; it must be enclosed in "{ }" braces
Expand Down

0 comments on commit 36c1166

Please sign in to comment.