mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
make sure the waitingInvoices tasks are done
This commit is contained in:
parent
aa8565e3cc
commit
9d406923ae
@ -331,7 +331,8 @@ namespace BTCPayServer.HostedServices
|
||||
{
|
||||
leases.Dispose();
|
||||
_Cts.Cancel();
|
||||
return _Loop;
|
||||
var waitingPendingInvoices = _WaitingInvoices ?? Task.CompletedTask;
|
||||
return Task.WhenAll(waitingPendingInvoices, _Loop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user