htlcswitch: ensure channel state machine is stopped on link stoppage

This commit is contained in:
Olaoluwa Osuntokun 2017-09-22 15:56:06 -07:00
parent be62188962
commit 457aebd16f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 3 additions and 0 deletions

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)