Do not block the Lightning PendingPayoutListener if a client is failing

This commit is contained in:
nicolas.dorier
2024-09-10 17:33:36 +09:00
parent 04b1130837
commit 4601359ebe

View File

@@ -109,12 +109,16 @@ public class LightningPendingPayoutListener : BaseAsyncService
break;
case PayoutLightningBlob payoutLightningBlob:
{
var payment = await client.GetPayment(payoutLightningBlob.Id, CancellationToken);
if (payment is null)
LightningPayment payment = null;
try
{
continue;
payment = await client.GetPayment(payoutLightningBlob.Id, CancellationToken);
}
catch
{
}
if (payment is null)
continue;
switch (payment.Status)
{
case LightningPaymentStatus.Complete: