fix reconnecting once more
This commit is contained in:
@@ -377,7 +377,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||||||
|
|
||||||
private async Task MareHubOnReconnected()
|
private async Task MareHubOnReconnected()
|
||||||
{
|
{
|
||||||
ServerState = ServerState.Connected;
|
ServerState = ServerState.Reconnecting;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
InitializeApiHooks();
|
InitializeApiHooks();
|
||||||
@@ -387,6 +387,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||||||
await StopConnection(ServerState.VersionMisMatch).ConfigureAwait(false);
|
await StopConnection(ServerState.VersionMisMatch).ConfigureAwait(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
ServerState = ServerState.Connected;
|
||||||
await LoadIninitialPairs().ConfigureAwait(false);
|
await LoadIninitialPairs().ConfigureAwait(false);
|
||||||
await LoadOnlinePairs().ConfigureAwait(false);
|
await LoadOnlinePairs().ConfigureAwait(false);
|
||||||
Mediator.Publish(new ConnectedMessage(_connectionDto));
|
Mediator.Publish(new ConnectedMessage(_connectionDto));
|
||||||
|
|||||||
Reference in New Issue
Block a user