From 0a31da07b17954a4585e7102dd0f16a09bbd0e60 Mon Sep 17 00:00:00 2001 From: rootdarkarchon Date: Thu, 18 Jan 2024 10:38:25 +0100 Subject: [PATCH] fix issue of not sending data after reconnecting? --- MareSynchronos/WebAPI/SignalR/ApiController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MareSynchronos/WebAPI/SignalR/ApiController.cs b/MareSynchronos/WebAPI/SignalR/ApiController.cs index e1be8e4..5784f2a 100644 --- a/MareSynchronos/WebAPI/SignalR/ApiController.cs +++ b/MareSynchronos/WebAPI/SignalR/ApiController.cs @@ -377,7 +377,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM private async Task MareHubOnReconnected() { - ServerState = ServerState.Connecting; + ServerState = ServerState.Connected; try { InitializeApiHooks(); @@ -389,7 +389,6 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM } await LoadIninitialPairs().ConfigureAwait(false); await LoadOnlinePairs().ConfigureAwait(false); - ServerState = ServerState.Connected; } catch (Exception ex) {