fix issue of not sending data after reconnecting?

This commit is contained in:
rootdarkarchon
2024-02-10 13:57:07 +00:00
committed by Loporrit
parent b17101f1c8
commit 0a31da07b1
@@ -377,7 +377,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
private async Task MareHubOnReconnected() private async Task MareHubOnReconnected()
{ {
ServerState = ServerState.Connecting; ServerState = ServerState.Connected;
try try
{ {
InitializeApiHooks(); InitializeApiHooks();
@@ -389,7 +389,6 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
} }
await LoadIninitialPairs().ConfigureAwait(false); await LoadIninitialPairs().ConfigureAwait(false);
await LoadOnlinePairs().ConfigureAwait(false); await LoadOnlinePairs().ConfigureAwait(false);
ServerState = ServerState.Connected;
} }
catch (Exception ex) catch (Exception ex)
{ {