mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 13:24:16 +01:00
check for timezone
This commit is contained in:
parent
9e6108a4d6
commit
24960fd1ba
2 changed files with 23 additions and 2 deletions
|
|
@ -212,6 +212,12 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||
Logger.LogInformation("Failed to establish connection, retrying");
|
||||
await Task.Delay(TimeSpan.FromSeconds(new Random().Next(5, 20)), token).ConfigureAwait(false);
|
||||
}
|
||||
catch (InvalidOperationException ex)
|
||||
{
|
||||
Logger.LogWarning(ex, "InvalidOperationException on connection");
|
||||
ServerState = ServerState.Disconnected;
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logger.LogWarning(ex, "Exception on Connection");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue