X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=ba4d14a8369b36e6a0696027d66ec9fb7906e2ca;hb=b2b606263e2676354259164d532ff9aa91ccdf87;hp=1b4934edcc9c39127cc53bb349f25904f22590a7;hpb=56e2e1ab1829773ae32048930fbf6c4c98333891;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 1b4934ed..ba4d14a8 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -7,7 +7,7 @@ import { isMainThread } from 'node:worker_threads'; import chalk from 'chalk'; -import { waitForChargingStationEvents } from './ChargingStationUtils'; +import { waitChargingStationEvents } from './ChargingStationUtils'; import type { AbstractUIServer } from './ui-server/AbstractUIServer'; import { UIServerFactory } from './ui-server/UIServerFactory'; import { version } from '../../package.json' assert { type: 'json' }; @@ -174,7 +174,7 @@ export class Bootstrap extends EventEmitter { ) ); await Promise.race([ - waitForChargingStationEvents( + waitChargingStationEvents( this, ChargingStationWorkerMessageEvents.stopped, this.numberOfChargingStations