mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-06 15:44:26 +01:00
fix null reference exception when no tor settings are provided
This commit is contained in:
@@ -122,11 +122,11 @@ namespace BTCPayServer.Services
|
||||
|
||||
public override async Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
if (string.IsNullOrEmpty(_options.Value.TorrcFile))
|
||||
if (string.IsNullOrEmpty(_options.Value.TorrcFile) && _options.Value.TorServices != null)
|
||||
{
|
||||
LoadFromConfig();
|
||||
}
|
||||
else
|
||||
else if(!string.IsNullOrEmpty(_options.Value.TorrcFile))
|
||||
{
|
||||
await Refresh();
|
||||
await base.StartAsync(cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user