X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=677843d27c1c479ac4c9e34f98bcd98f38a55a44;hb=fca8bc64968004b4018a4d766b2121ced4fee943;hp=96a498f601a626c2f640637fe8184446fe646085;hpb=805e8a892d75e4bd8b75f5b7c76110bde0e2dc81;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 96a498f6..677843d2 100644 --- 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 { if (isMainThread && this.started === true) { - await this.uiServer?.sendBroadcastChannelRequest( + await this.uiServer?.sendRequestOnBroadcastChannel( this.uiServer.buildProtocolRequest( Utils.generateUUID(), ProcedureName.STOP_CHARGING_STATION, @@ -299,7 +299,7 @@ export class Bootstrap extends EventEmitter { process.exit(0); }) .catch((error) => { - console.error(chalk.red('Error while stopping charging stations simulator:'), error); + console.error(chalk.red('Error while shutdowning charging stations simulator: '), error); process.exit(1); }); };