repositories
/
e-mobility-charging-stations-simulator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0da0d
)
fix: ensure event listeners are removed at worker set stop
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 11 Dec 2023 18:03:46 +0000
(19:03 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 11 Dec 2023 18:03:46 +0000
(19:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/WorkerSet.ts
patch
|
blob
|
blame
|
history
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;
}
}