htlcswitch+peer: notify inactive link event when htlcManager exits
This commit is contained in:
5 files changed
+34
-20
No files matched your search
@@ -2293,6 +2293,8 @@ func (s *Switch) AddLink(link ChannelLink) error {
|
||||
link.attachFailAliasUpdate(s.failAliasUpdate)
|
||||
|
||||
if err := link.Start(); err != nil {
|
||||
log.Errorf("AddLink failed to start link with chanID=%v: %v",
|
||||
chanID, err)
|
||||
s.removeLink(chanID)
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user