mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 18:27:24 +01:00
attempt to fix some crashes
This commit is contained in:
parent
734e73ccfd
commit
22e11cac6a
7 changed files with 39 additions and 23 deletions
|
|
@ -334,7 +334,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||
|
||||
private async Task StopConnection(ServerState state)
|
||||
{
|
||||
ServerState = state;
|
||||
ServerState = ServerState.Disconnecting;
|
||||
|
||||
if (_mareHub is not null)
|
||||
{
|
||||
|
|
@ -346,5 +346,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
|
|||
_mareHub = null;
|
||||
_connectionDto = null;
|
||||
}
|
||||
|
||||
ServerState = state;
|
||||
}
|
||||
}
|
||||
|
|
@ -5,10 +5,11 @@ public enum ServerState
|
|||
Offline,
|
||||
Connecting,
|
||||
Reconnecting,
|
||||
Disconnecting,
|
||||
Disconnected,
|
||||
Connected,
|
||||
Unauthorized,
|
||||
VersionMisMatch,
|
||||
RateLimited,
|
||||
NoSecretKey,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue