mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-09 00:24:21 +01:00
htlcswitch: fix clean of channel link
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
291232f0c3
commit
3555c4c463
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user