fix: ensure registration status is deleted if invalid boot notification
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 1.6 / OCPP16ResponseService.ts
index c7a75e43a4034960827c39e1b2dcc510fbbcacd1..4306fc8f4f06d5daa3820a0b0e4e7cde374ad061 100644 (file)
@@ -541,6 +541,7 @@ export class OCPP16ResponseService extends OCPPResponseService {
         ? logger.warn(logMsg)
         : logger.info(logMsg)
     } else {
+      delete chargingStation.bootNotificationResponse
       logger.error(
         `${chargingStation.logPrefix()} Charging station boot notification response received: %j with undefined registration status`,
         payload