From c80ffe396e3b8f3143318eecfe4d03b23c418605 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 10 Jan 2018 02:13:49 +0900 Subject: [PATCH] forgot passing cancellation --- BTCPayServer/HostedServices/InvoiceWatcher.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/HostedServices/InvoiceWatcher.cs b/BTCPayServer/HostedServices/InvoiceWatcher.cs index 9ec5498d4..c993e1ecc 100644 --- a/BTCPayServer/HostedServices/InvoiceWatcher.cs +++ b/BTCPayServer/HostedServices/InvoiceWatcher.cs @@ -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); } });