From 457aebd16f214e1591daa06d0f40c836984d35b7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 22 Sep 2017 15:56:06 -0700 Subject: [PATCH] htlcswitch: ensure channel state machine is stopped on link stoppage --- htlcswitch/link.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 40278553e..f0315b139 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -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)