mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 16:57:22 +01:00
fixes pair notes, showing server state on stopping connections
This commit is contained in:
parent
7e1a973178
commit
451d604f70
4 changed files with 18 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue