check for timezone

This commit is contained in:
rootdarkarchon
2023-10-25 12:25:00 +02:00
parent 9e6108a4d6
commit 24960fd1ba
2 changed files with 23 additions and 2 deletions

View File

@@ -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");