mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-29 03:44:27 +01:00
Do not block the Lightning PendingPayoutListener if a client is failing
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user