chore: fix lock

This commit is contained in:
andig 2024-04-10 20:20:36 +02:00
parent 0fc30682ea
commit 1b81a6490c

View file

@ -471,6 +471,9 @@ func (lp *Loadpoint) StartVehicleDetection() {
// reset vehicle
lp.setActiveVehicle(nil)
lp.vmu.Lock()
defer lp.vmu.Unlock()
// start auto-detect
lp.startVehicleDetection()
}