From edf304ad8b98a38b21cc08ef3bb727b8f48b71af Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 3 Sep 2018 17:03:00 -0700 Subject: [PATCH] peer: ensure we unlock the msgCond during peer msgConsumer exit --- peer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/peer.go b/peer.go index 4b5daa02..a7f8d78f 100644 --- a/peer.go +++ b/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()