peer: ensure mutex is freed up when the msgConsumer exits

This commit is contained in:
Olaoluwa Osuntokun committed 2017-08-03 13:50:34 -07:00
1 parent b1205e71ec
commit 36f4e2046d
1 file changed
+1
+1
View File
@@ -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:
} }