Merge pull request #3732 from Crypt-iQ/router_race_1115

routing: fix race condition when resuming payments
This commit is contained in:
Wilmer Paulino 2019-11-18 11:06:18 -08:00 committed by GitHub
commit 29f12411cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)