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
refactor: cleanup UI service method namespace
[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 5e1ac3eb4b1b447720b5489e629ef143e510a5c7..802a944525cc4c824e6a282aa048c20ab6a0e9cc 100644
(file)
--- a/
src/charging-station/Bootstrap.ts
+++ b/
src/charging-station/Bootstrap.ts
@@
-129,7
+129,7
@@
export class Bootstrap extends EventEmitter {
public async stop(): Promise<void> {
if (isMainThread && this.started === true) {
public async stop(): Promise<void> {
if (isMainThread && this.started === true) {
- await this.uiServer?.send
RequestOnBroadcastChannel
(
+ await this.uiServer?.send
InternalRequest
(
this.uiServer.buildProtocolRequest(
Utils.generateUUID(),
ProcedureName.STOP_CHARGING_STATION,
this.uiServer.buildProtocolRequest(
Utils.generateUUID(),
ProcedureName.STOP_CHARGING_STATION,
@@
-299,7
+299,7
@@
export class Bootstrap extends EventEmitter {
process.exit(0);
})
.catch((error) => {
process.exit(0);
})
.catch((error) => {
- console.error(chalk.red('Error while s
topp
ing charging stations simulator: '), error);
+ console.error(chalk.red('Error while s
hutdown
ing charging stations simulator: '), error);
process.exit(1);
});
};
process.exit(1);
});
};