some minor fixes

This commit is contained in:
rootdarkarchon
2023-10-25 12:31:16 +02:00
parent 24960fd1ba
commit 3383de7294
3 changed files with 8 additions and 6 deletions

View File

@@ -215,7 +215,7 @@ public sealed partial class ApiController : DisposableMediatorSubscriberBase, IM
catch (InvalidOperationException ex)
{
Logger.LogWarning(ex, "InvalidOperationException on connection");
ServerState = ServerState.Disconnected;
await StopConnection(ServerState.Disconnected).ConfigureAwait(false);
return;
}
catch (Exception ex)