mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
Fix NRE in BaseService.StopAsync
This commit is contained in:
parent
67ba64b0a1
commit
b5ebd14589
@ -57,7 +57,8 @@ namespace BTCPayServer.HostedServices
|
||||
if (_Cts != null)
|
||||
{
|
||||
_Cts.Cancel();
|
||||
await Task.WhenAll(_Tasks);
|
||||
if (_Tasks != null)
|
||||
await Task.WhenAll(_Tasks);
|
||||
}
|
||||
Logs.PayServer.LogInformation($"{this.GetType().Name} successfully exited...");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user