adjustments in order of getting data
This commit is contained in:
@@ -186,12 +186,12 @@ public partial class ApiController : MediatorSubscriberBase, IDisposable, IMareH
|
|||||||
|
|
||||||
await _mareHub.StartAsync(token).ConfigureAwait(false);
|
await _mareHub.StartAsync(token).ConfigureAwait(false);
|
||||||
|
|
||||||
|
await InitializeData().ConfigureAwait(false);
|
||||||
|
|
||||||
_connectionDto = await GetConnectionDto().ConfigureAwait(false);
|
_connectionDto = await GetConnectionDto().ConfigureAwait(false);
|
||||||
|
|
||||||
ServerState = ServerState.Connected;
|
ServerState = ServerState.Connected;
|
||||||
|
|
||||||
await InitializeData().ConfigureAwait(false);
|
|
||||||
|
|
||||||
if (_connectionDto.ServerVersion != IMareHub.ApiVersion)
|
if (_connectionDto.ServerVersion != IMareHub.ApiVersion)
|
||||||
{
|
{
|
||||||
await StopConnection(token, ServerState.VersionMisMatch).ConfigureAwait(false);
|
await StopConnection(token, ServerState.VersionMisMatch).ConfigureAwait(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user