mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
peer: ensure mutex is freed up when the msgConsumer exits
This commit is contained in:
parent
b1205e71ec
commit
36f4e2046d
1 changed files with 1 additions and 0 deletions
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…
Add table
Reference in a new issue