this.timeToStop = true;
}
- public async startConnector(connectorId: number): Promise<void> {
+ private async startConnector(connectorId: number): Promise<void> {
do {
if (this.timeToStop) {
logger.error(this.logPrefix(connectorId) + ' Entered in transaction loop while a request to stop it was made');
this.automaticTransactionGeneration = new AutomaticTransactionGenerator(this);
}
if (this.automaticTransactionGeneration.timeToStop) {
- await this.automaticTransactionGeneration.start();
+ // The ATG might sleep
+ void this.automaticTransactionGeneration.start();
}
}
if (this.getEnableStatistics()) {
this.automaticTransactionGeneration = new AutomaticTransactionGenerator(this);
}
if (this.automaticTransactionGeneration.timeToStop) {
- await this.automaticTransactionGeneration.start();
+ // The ATG might sleep
+ void this.automaticTransactionGeneration.start();
}
}
// FIXME?: restart heartbeat and WebSocket ping when their interval values have changed