routing: fix race condition when resuming payments

This commit is contained in:
nsa 2019-11-15 14:44:05 -05:00
parent 2ab16f7601
commit 929167b9af
No known key found for this signature in database
GPG Key ID: 118759E83439A9B1

@ -533,7 +533,7 @@ func (r *ChannelRouter) Start() error {
PaymentHash: payment.Info.PaymentHash, PaymentHash: payment.Info.PaymentHash,
} }
_, _, err = r.sendPayment(payment.Attempt, lPayment, paySession) _, _, err := r.sendPayment(payment.Attempt, lPayment, paySession)
if err != nil { if err != nil {
log.Errorf("Resuming payment with hash %v "+ log.Errorf("Resuming payment with hash %v "+
"failed: %v.", payment.Info.PaymentHash, err) "failed: %v.", payment.Info.PaymentHash, err)