attempt to fix some crashes

This commit is contained in:
rootdarkarchon
2023-03-14 23:34:58 +01:00
parent 734e73ccfd
commit 22e11cac6a
7 changed files with 39 additions and 23 deletions

View File

@@ -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;
}
}