mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
signalr connection fails if can't connect in 5 seconds.
This commit is contained in:
parent
5ab873150e
commit
197cad7fb5
@ -121,10 +121,17 @@ protected void ConnectSignalR()
|
||||
}
|
||||
});
|
||||
|
||||
var retryCount = 0;
|
||||
|
||||
while (_signalrConnection.State != ConnectionState.Connected)
|
||||
{
|
||||
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
|
||||
if (retryCount > 25)
|
||||
{
|
||||
Assert.Fail("Couldn't establish signalr connection. State: {0}", _signalrConnection.State);
|
||||
}
|
||||
|
||||
retryCount++;
|
||||
Console.WriteLine("Connecting to signalR" + _signalrConnection.State);
|
||||
Thread.Sleep(200);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user