peer: ensure mutex is freed up when the msgConsumer exits
This commit is contained in:
parent
b1205e71ec
commit
36f4e2046d
1
peer.go
1
peer.go
@ -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:
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user