mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
make sure the waitingInvoices tasks are done
This commit is contained in:
parent
aa8565e3cc
commit
9d406923ae
1 changed files with 2 additions and 1 deletions
|
@ -331,7 +331,8 @@ namespace BTCPayServer.HostedServices
|
|||
{
|
||||
leases.Dispose();
|
||||
_Cts.Cancel();
|
||||
return _Loop;
|
||||
var waitingPendingInvoices = _WaitingInvoices ?? Task.CompletedTask;
|
||||
return Task.WhenAll(waitingPendingInvoices, _Loop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue