fix: ensure registration status is deleted if invalid boot notification
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / 2.0 / OCPP20ResponseService.ts
index 8a6e2cacb7d7c26b4da9f56c67b2e16b25d9681c..e5fe290774975e77d08706f5af3587ac7757eead 100644 (file)
@@ -207,6 +207,7 @@ export class OCPP20ResponseService 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