adjustments in order of getting data

This commit is contained in:
rootdarkarchon
2023-02-10 12:32:52 +01:00
parent 3a23fe0414
commit 77e1a68387

View File

@@ -186,12 +186,12 @@ public partial class ApiController : MediatorSubscriberBase, IDisposable, IMareH
await _mareHub.StartAsync(token).ConfigureAwait(false);
await InitializeData().ConfigureAwait(false);
_connectionDto = await GetConnectionDto().ConfigureAwait(false);
ServerState = ServerState.Connected;
await InitializeData().ConfigureAwait(false);
if (_connectionDto.ServerVersion != IMareHub.ApiVersion)
{
await StopConnection(token, ServerState.VersionMisMatch).ConfigureAwait(false);