From 929167b9afd57b5fc6299aa9ec58bda0a82f09bd Mon Sep 17 00:00:00 2001 From: nsa Date: Fri, 15 Nov 2019 14:44:05 -0500 Subject: [PATCH] routing: fix race condition when resuming payments --- routing/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/router.go b/routing/router.go index 049011a9..75db5a9d 100644 --- a/routing/router.go +++ b/routing/router.go @@ -533,7 +533,7 @@ func (r *ChannelRouter) Start() error { PaymentHash: payment.Info.PaymentHash, } - _, _, err = r.sendPayment(payment.Attempt, lPayment, paySession) + _, _, err := r.sendPayment(payment.Attempt, lPayment, paySession) if err != nil { log.Errorf("Resuming payment with hash %v "+ "failed: %v.", payment.Info.PaymentHash, err)