peer: ensure we unlock the msgCond during peer msgConsumer exit

This commit is contained in:
Olaoluwa Osuntokun
2018-09-03 17:03:00 -07:00
parent 2b448be048
commit edf304ad8b

View File

@@ -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()