mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 14:22:37 +01:00
peer: stop a channel's goroutines within wipeChannel
This commit is contained in:
parent
9c685433f3
commit
7df1d75267
1 changed files with 2 additions and 0 deletions
2
peer.go
2
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()
|
||||
|
|
Loading…
Add table
Reference in a new issue