peer: ensure mutex is freed up when the msgConsumer exits
This commit is contained in:
1 file changed
+1
@@ -473,6 +473,7 @@ func (c *chanMsgStream) msgConsumer() {
|
|||||||
case <-c.quit:
|
case <-c.quit:
|
||||||
peerLog.Tracef("Update stream for "+
|
peerLog.Tracef("Update stream for "+
|
||||||
"ChannelID(%x) exiting", c.cid[:])
|
"ChannelID(%x) exiting", c.cid[:])
|
||||||
|
c.msgCond.L.Unlock()
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user