htlcswitch: fix clean of channel link

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-11-09 16:38:57 -08:00
1 parent 291232f0c3
commit 3555c4c463
1 file changed
+1
+1
View File
@@ -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
}