diff --git a/BTCPayServer/Payments/Lightning/LightningPendingPayoutListener.cs b/BTCPayServer/Payments/Lightning/LightningPendingPayoutListener.cs index 708510ed1..fc9ae63be 100644 --- a/BTCPayServer/Payments/Lightning/LightningPendingPayoutListener.cs +++ b/BTCPayServer/Payments/Lightning/LightningPendingPayoutListener.cs @@ -94,6 +94,9 @@ public class LightningPendingPayoutListener : BaseAsyncService var handler = _payoutHandlers.TryGet(payoutData.GetPayoutMethodId()) as LightningLikePayoutHandler; if (handler is null || handler.PayoutsPaymentProcessing.Contains(payoutData.Id)) continue; + using var tracking = handler.PayoutsPaymentProcessing.StartTracking(); + if (!tracking.TryTrack(payoutData.Id)) + continue; var proof = handler.ParseProof(payoutData) as PayoutLightningBlob; LightningPayment payment = null;