Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
this.internalStartConnector.bind(this) as (
this: AutomaticTransactionGenerator,
...args: any[]
- ) => void,
+ ) => Promise<void>,
this,
connectorId
- );
+ ).catch(() => {
+ /* This is intentional */
+ });
} else if (this.connectorsStatus.get(connectorId)?.start === true) {
logger.warn(`${this.logPrefix(connectorId)} is already started on connector`);
}
chargingStation: ChargingStation,
commandPayload: ResetRequest
): DefaultResponse {
- this.asyncResource.runInAsyncScope(
- chargingStation.reset.bind(chargingStation) as (
- this: ChargingStation,
- ...args: any[]
- ) => void,
- chargingStation,
- (commandPayload.type + 'Reset') as OCPP16StopTransactionReason
- );
+ this.asyncResource
+ .runInAsyncScope(
+ chargingStation.reset.bind(chargingStation) as (
+ this: ChargingStation,
+ ...args: any[]
+ ) => Promise<void>,
+ chargingStation,
+ (commandPayload.type + 'Reset') as OCPP16StopTransactionReason
+ )
+ .catch(() => {
+ /* This is intentional */
+ });
logger.info(
`${chargingStation.logPrefix()} ${
commandPayload.type