From b47b4b10cb1ecab48fbd101d035a4af632877c14 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 18 Jan 2018 17:21:29 +0900 Subject: [PATCH] should fix https://github.com/btcpayserver/btcpayserver/issues/31 --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/HostedServices/InvoiceWatcher.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index da0db7209..32d7a2521 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.1.3 + 1.0.1.4 diff --git a/BTCPayServer/HostedServices/InvoiceWatcher.cs b/BTCPayServer/HostedServices/InvoiceWatcher.cs index 96569e541..0c4f4259f 100644 --- a/BTCPayServer/HostedServices/InvoiceWatcher.cs +++ b/BTCPayServer/HostedServices/InvoiceWatcher.cs @@ -489,10 +489,10 @@ namespace BTCPayServer.HostedServices } catch (Exception ex) when (!cancellation.IsCancellationRequested) { - Logs.PayServer.LogCritical(ex, $"Error in the InvoiceWatcher loop (Invoice {item})"); + Logs.PayServer.LogCritical(ex, $"Error in the InvoiceWatcher loop (Invoice {i})"); await Task.Delay(2000, cancellation); } - finally { executing.TryRemove(item, out Task useless); } + finally { executing.TryRemove(i, out Task useless); } }); } }