mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-23 16:04:22 +01:00
make sure the waitingInvoices tasks are done
This commit is contained in:
@@ -331,7 +331,8 @@ namespace BTCPayServer.HostedServices
|
||||
{
|
||||
leases.Dispose();
|
||||
_Cts.Cancel();
|
||||
return _Loop;
|
||||
var waitingPendingInvoices = _WaitingInvoices ?? Task.CompletedTask;
|
||||
return Task.WhenAll(waitingPendingInvoices, _Loop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user