mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Cacher stopLock should be unlocked
This commit is contained in:
parent
6b03a43b76
commit
42b01beaca
@ -655,7 +655,7 @@ func (c *Cacher) Stop() {
|
|||||||
}
|
}
|
||||||
c.stopLock.Lock()
|
c.stopLock.Lock()
|
||||||
if c.stopped {
|
if c.stopped {
|
||||||
// avoid that it was locked meanwhile as isStopped only read-locks
|
c.stopLock.Unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.stopped = true
|
c.stopped = true
|
||||||
|
Loading…
Reference in New Issue
Block a user