peer: ensure mutex is freed up when the msgConsumer exits

This commit is contained in:
Olaoluwa Osuntokun 2017-08-03 13:49:25 -07:00
parent b1205e71ec
commit 36f4e2046d
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -473,6 +473,7 @@ func (c *chanMsgStream) msgConsumer() {
case <-c.quit:
peerLog.Tracef("Update stream for "+
"ChannelID(%x) exiting", c.cid[:])
c.msgCond.L.Unlock()
return
default:
}