repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix: flag worker set as stopped as soon the stopped event is emitted
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerSet.ts
diff --git
a/src/worker/WorkerSet.ts
b/src/worker/WorkerSet.ts
index f22f195379616c32494623668030a7c8d32de2bd..4a43e27b0601c44d3035c77411640cefd2fe798a 100644
(file)
--- a/
src/worker/WorkerSet.ts
+++ b/
src/worker/WorkerSet.ts
@@
-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 */