htlcswitch: ensure channel state machine is stopped on link stoppage

This commit is contained in:
Olaoluwa Osuntokun committed 2017-09-22 15:56:12 -07:00
1 parent be62188962
commit 457aebd16f
1 file changed
+3
+3
View File
@@ -276,6 +276,9 @@ func (l *channelLink) Stop() {
log.Infof("ChannelLink(%v) is stopping", l)
// TODO(roasbeef): need to stop channel?
l.channel.Stop()
l.overflowQueue.Stop()
close(l.quit)