peer: ensure we unlock the msgCond during peer msgConsumer exit
This commit is contained in:
parent
2b448be048
commit
edf304ad8b
1
peer.go
1
peer.go
@ -769,6 +769,7 @@ func (ms *msgStream) msgConsumer() {
|
||||
// items.
|
||||
select {
|
||||
case <-ms.peer.quit:
|
||||
ms.msgCond.L.Unlock()
|
||||
return
|
||||
case <-ms.quit:
|
||||
ms.msgCond.L.Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user