mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 09:29:10 +01:00
Make sure renci ssh does not prevent btcpay from closing
This commit is contained in:
parent
9a99b3fdc2
commit
cd5b334a00
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue