mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:07:22 +01:00
fix reconnecting once more
This commit is contained in:
parent
f4f96380d9
commit
83a15ba77c
1 changed files with 2 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||
|
||||
private async Task MareHubOnReconnected()
|
||||
{
|
||||
ServerState = ServerState.Connected;
|
||||
ServerState = ServerState.Reconnecting;
|
||||
try
|
||||
{
|
||||
InitializeApiHooks();
|
||||
|
|
@ -404,6 +404,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||
await StopConnection(ServerState.VersionMisMatch).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
ServerState = ServerState.Connected;
|
||||
await LoadIninitialPairs().ConfigureAwait(false);
|
||||
await LoadOnlinePairs().ConfigureAwait(false);
|
||||
Mediator.Publish(new ConnectedMessage(_connectionDto));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue