diff --git a/src/worker/WorkerSet.ts b/src/worker/WorkerSet.ts index f22f19537..4a43e27b0 100644 --- a/src/worker/WorkerSet.ts +++ b/src/worker/WorkerSet.ts @@ -97,9 +97,9 @@ export class WorkerSet extends WorkerAbstract { await waitWorkerExit } this.emitter?.emit(WorkerSetEvents.stopped, this.info) + this.started = false this.emitter?.emitDestroy() this.emitter?.removeAllListeners() - this.started = false } /** @inheritDoc */