mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-24 16:34:35 +01:00
Fix NRE in BaseService.StopAsync
This commit is contained in:
@@ -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...");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user