mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Remove SSH warning if no SSH settings set
This commit is contained in:
parent
a2cb6178b8
commit
3dada3c464
1 changed files with 9 additions and 9 deletions
|
@ -63,15 +63,15 @@ namespace BTCPayServer.HostedServices
|
|||
}
|
||||
Logs.Configuration.LogWarning($"SSH connection issue of type {ex.GetType().Name}: {message}");
|
||||
}
|
||||
}
|
||||
if (!canUseSSH)
|
||||
{
|
||||
Logs.Configuration.LogWarning($"Retrying SSH connection in {(int)nextWait.TotalSeconds} seconds");
|
||||
await Task.Delay(nextWait, _cancellationTokenSource.Token);
|
||||
nextWait = TimeSpan.FromSeconds(nextWait.TotalSeconds * 2);
|
||||
if (nextWait > TimeSpan.FromMinutes(10.0))
|
||||
nextWait = TimeSpan.FromMinutes(10.0);
|
||||
goto retry;
|
||||
if (!canUseSSH)
|
||||
{
|
||||
Logs.Configuration.LogWarning($"Retrying SSH connection in {(int)nextWait.TotalSeconds} seconds");
|
||||
await Task.Delay(nextWait, _cancellationTokenSource.Token);
|
||||
nextWait = TimeSpan.FromSeconds(nextWait.TotalSeconds * 2);
|
||||
if (nextWait > TimeSpan.FromMinutes(10.0))
|
||||
nextWait = TimeSpan.FromMinutes(10.0);
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
CanUseSSH = canUseSSH;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue