X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=802a944525cc4c824e6a282aa048c20ab6a0e9cc;hb=7c1395ab4ec7d727ac09c0f0347a8d9fc5e2c8de;hp=5e1ac3eb4b1b447720b5489e629ef143e510a5c7;hpb=bf4afa568a47cf088c01725737aecb4be7df40b2;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 5e1ac3eb..802a9445 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?.sendRequestOnBroadcastChannel( + await this.uiServer?.sendInternalRequest( 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); }); };