mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-02 21:54:23 +01:00
forgot passing cancellation
This commit is contained in:
@@ -410,7 +410,7 @@ namespace BTCPayServer.HostedServices
|
||||
catch (Exception ex) when (!cancellation.IsCancellationRequested)
|
||||
{
|
||||
Logs.PayServer.LogCritical(ex, $"Error in the InvoiceWatcher loop (Invoice {item})");
|
||||
await Task.Delay(2000);
|
||||
await Task.Delay(2000, cancellation);
|
||||
}
|
||||
finally { executing.TryRemove(item, out Task useless); }
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user