From 276f2e467b0871e9dd52c20a08b92c8d1b5a46c6 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 16 Oct 2017 18:58:26 -0700 Subject: [PATCH] routing: end path finding on an additional set of critical-ish errors --- routing/router.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/routing/router.go b/routing/router.go index 5323d9b4f..406ccc082 100644 --- a/routing/router.go +++ b/routing/router.go @@ -1293,25 +1293,29 @@ sendLoop: if err := r.applyChannelUpdate(&update); err != nil { return preImage, nil, err } - continue + + return preImage, nil, sendError case *lnwire.FailFeeInsufficient: update := onionErr.Update if err := r.applyChannelUpdate(&update); err != nil { return preImage, nil, err } - continue + + return preImage, nil, sendError case *lnwire.FailIncorrectCltvExpiry: update := onionErr.Update if err := r.applyChannelUpdate(&update); err != nil { return preImage, nil, err } - continue + + return preImage, nil, sendError case *lnwire.FailChannelDisabled: update := onionErr.Update if err := r.applyChannelUpdate(&update); err != nil { return preImage, nil, err } - continue + + return preImage, nil, sendError case *lnwire.FailTemporaryChannelFailure: update := onionErr.Update if err := r.applyChannelUpdate(update); err != nil {