From 77e1a6838770c96ab2e53abafe79bbe2aa48c74a Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Fri, 10 Feb 2023 12:32:52 +0100 Subject: [PATCH] adjustments in order of getting data --- MareSynchronos/WebAPI/ApiController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MareSynchronos/WebAPI/ApiController.cs b/MareSynchronos/WebAPI/ApiController.cs index 6cf50ca..5b44822 100644 --- a/MareSynchronos/WebAPI/ApiController.cs +++ b/MareSynchronos/WebAPI/ApiController.cs @@ -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);