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:
eba5614
)
fix(simulator): remove unneeded main thread check at simulator stop
author
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 7 Nov 2023 20:08:02 +0000
(21:08 +0100)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Tue, 7 Nov 2023 20:08:02 +0000
(21:08 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/Bootstrap.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index baa756af6a1d8352fc0db56031fddaebe528d775..f3f6d8b08531e52678772cfad3889f09dd0d9ce7 100644
(file)
--- a/
src/charging-station/Bootstrap.ts
+++ b/
src/charging-station/Bootstrap.ts
@@
-178,9
+178,6
@@
export class Bootstrap extends EventEmitter {
}
public async stop(): Promise<void> {
- if (!isMainThread) {
- throw new BaseError('Cannot stop charging stations simulator from worker thread');
- }
if (this.started === true) {
if (this.stopping === false) {
this.stopping = true;