peer: ensure we unlock the msgCond during peer msgConsumer exit

This commit is contained in:
Olaoluwa Osuntokun committed 2018-09-03 17:03:05 -07:00
1 parent 2b448be048
commit edf304ad8b
1 file changed
+1
+1
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()