From fe25e00c94b05d5a6779c0da79cf85480a7e3657 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 19 Jan 2018 10:52:44 +0900 Subject: [PATCH] Fix https://github.com/btcpayserver/btcpayserver/issues/38 --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/HostedServices/InvoiceWatcher.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index 79aa836cf..e9558aa25 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -2,7 +2,7 @@ Exe netcoreapp2.0 - 1.0.1.11 + 1.0.1.12 diff --git a/BTCPayServer/HostedServices/InvoiceWatcher.cs b/BTCPayServer/HostedServices/InvoiceWatcher.cs index 48247133c..41c6fdf45 100644 --- a/BTCPayServer/HostedServices/InvoiceWatcher.cs +++ b/BTCPayServer/HostedServices/InvoiceWatcher.cs @@ -194,7 +194,7 @@ namespace BTCPayServer.HostedServices await _InvoiceRepository.UnaffectAddress(invoice.Id); context.MarkDirty(); } - else if (invoice.Status == "expired") + else if (invoice.Status == "expired" && invoice.ExceptionStatus != "paidLate") { invoice.ExceptionStatus = "paidLate"; context.Events.Add(new InvoiceEvent(invoice, 1009, "invoice_paidAfterExpiration"));