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.
|
// items.
|
||||||
select {
|
select {
|
||||||
case <-ms.peer.quit:
|
case <-ms.peer.quit:
|
||||||
|
ms.msgCond.L.Unlock()
|
||||||
return
|
return
|
||||||
case <-ms.quit:
|
case <-ms.quit:
|
||||||
ms.msgCond.L.Unlock()
|
ms.msgCond.L.Unlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user