mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
Make sure renci ssh does not prevent btcpay from closing
This commit is contained in:
parent
9a99b3fdc2
commit
cd5b334a00
@ -81,7 +81,8 @@ namespace BTCPayServer.HostedServices
|
||||
_cancellationTokenSource.Cancel();
|
||||
try
|
||||
{
|
||||
await _testingConnection;
|
||||
// Renci SSH sometimes is deadlocking, so we just wait at most 5 seconds
|
||||
await Task.WhenAny(_testingConnection, Task.Delay(5000, _cancellationTokenSource.Token));
|
||||
}
|
||||
catch { }
|
||||
Logs.PayServer.LogInformation($"{this.GetType().Name} successfully exited...");
|
||||
|
Loading…
Reference in New Issue
Block a user