fixes pair notes, showing server state on stopping connections

This commit is contained in:
rootdarkarchon
2023-01-29 16:33:42 +01:00
parent 7e1a973178
commit 451d604f70
4 changed files with 18 additions and 9 deletions

View File

@@ -375,6 +375,8 @@ public partial class ApiController : IDisposable, IMareHubClient
private async Task StopConnection(CancellationToken token, ServerState state)
{
ServerState = state;
if (_mareHub is not null)
{
_initialized = false;
@@ -391,7 +393,6 @@ public partial class ApiController : IDisposable, IMareHubClient
Disconnected?.Invoke();
_pairManager.ClearPairs();
_mareHub = null;
ServerState = state;
}
}