From 7df1d752670243dc564423e5108ac1cb689e01ba Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 14 May 2017 19:21:17 -0700 Subject: [PATCH] peer: stop a channel's goroutines within wipeChannel --- peer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/peer.go b/peer.go index 011ba1e8..9a6ed19c 100644 --- a/peer.go +++ b/peer.go @@ -1094,6 +1094,8 @@ func waitForChanToClose(bestHeight uint32, notifier chainntnfs.ChainNotifier, // wipeChannel removes the passed channel from all indexes associated with the // peer, and deletes the channel from the database. func wipeChannel(p *peer, channel *lnwallet.LightningChannel) error { + channel.Stop() + chanID := lnwire.NewChanIDFromOutPoint(channel.ChannelPoint()) p.activeChanMtx.Lock()