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(simulator): remove unneeded main thread check at simulator stop
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
Bootstrap.ts
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;