chore: fix lock
This commit is contained in:
parent
0fc30682ea
commit
1b81a6490c
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue