Cacher stopLock should be unlocked

This commit is contained in:
hzxuzhonghu 2017-12-19 11:18:15 +08:00
parent 6b03a43b76
commit 42b01beaca

View File

@ -655,7 +655,7 @@ func (c *Cacher) Stop() {
}
c.stopLock.Lock()
if c.stopped {
// avoid that it was locked meanwhile as isStopped only read-locks
c.stopLock.Unlock()
return
}
c.stopped = true