htlcswitch+peer: notify inactive link event when htlcManager exits

This commit is contained in:
yyforyongyu committed 2023-01-18 03:46:16 +08:00
1 parent ced8833895
commit f632a58b3b
5 files changed
+34 -20

No files matched your search

+2
View File
@@ -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
}