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: ensure event listeners are removed at worker set stop
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerSet.ts
diff --git
a/src/worker/WorkerSet.ts
b/src/worker/WorkerSet.ts
index c5df860ced4fc85b16e7067c805605b05db75e04..62ddf8079f2f6377cd0f95fe62daac629a27a9bb 100644
(file)
--- a/
src/worker/WorkerSet.ts
+++ b/
src/worker/WorkerSet.ts
@@
-95,6
+95,7
@@
export class WorkerSet extends WorkerAbstract<WorkerData> {
await waitWorkerExit;
this.emitter?.emit(WorkerSetEvents.stopped, this.info);
this.emitter?.emitDestroy();
+ this.emitter?.removeAllListeners();
this.started = false;
}
}