mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-20 13:27:27 +02:00
htlcswitch: fix clean of channel link
This commit is contained in:
parent
291232f0c3
commit
3555c4c463
1 changed files with 1 additions and 0 deletions
|
|
@ -875,6 +875,7 @@ func (s *Switch) addLink(link ChannelLink) error {
|
|||
s.interfaceIndex[peerPub][link] = struct{}{}
|
||||
|
||||
if err := link.Start(); err != nil {
|
||||
s.removeLink(link.ChanID())
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue