Auth service instance was persisting across template reloads and
station resets, causing stale adapters if OCPP version changed.
- Add OCPPAuthServiceFactory.clearInstance() before initialize()
in template file change handler
- Add OCPPAuthServiceFactory.clearInstance() before initialize()
in reset() method
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
await sleep(this.stationInfo!.resetTime!)
+ OCPPAuthServiceFactory.clearInstance(this)
this.initialize()
this.start()
}
this.sharedLRUCache.deleteChargingStationTemplate(this.templateFileHash)
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.idTagsCache.deleteIdTags(getIdTagsFile(this.stationInfo!)!)
+ OCPPAuthServiceFactory.clearInstance(this)
// Initialize
this.initialize()
// Restart the ATG