From 5c54677f5dca2b413f3cfa7916bbd4411ffba3a0 Mon Sep 17 00:00:00 2001 From: Fabian Stoll Date: Thu, 21 Nov 2024 15:41:45 +0100 Subject: [PATCH] chore: another whitespace fix --- .../ConnectionState/ClientConnectingState.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/ConnectionManagement/ConnectionState/ClientConnectingState.cs b/Assets/Scripts/ConnectionManagement/ConnectionState/ClientConnectingState.cs index 48d690481..252c6facd 100644 --- a/Assets/Scripts/ConnectionManagement/ConnectionState/ClientConnectingState.cs +++ b/Assets/Scripts/ConnectionManagement/ConnectionState/ClientConnectingState.cs @@ -5,8 +5,8 @@ namespace Unity.BossRoom.ConnectionManagement { /// - /// Connection state corresponding to when a client is attempting to connect to a server. Starts the client when - /// entering. If successful, transitions to the ClientConnected state. If not, transitions to the Offline state. + /// Connection state corresponding to when a client is attempting to connect to a server. Starts the client when + /// entering. If successful, transitions to the ClientConnected state. If not, transitions to the Offline state. /// class ClientConnectingState : OnlineState { @@ -51,10 +51,10 @@ void StartingClientFailed() var connectStatus = JsonUtility.FromJson(disconnectReason); m_ConnectStatusPublisher.Publish(connectStatus); } + m_ConnectionManager.ChangeState(m_ConnectionManager.m_Offline); } - internal async Task ConnectClientAsync() { try @@ -66,7 +66,7 @@ internal async Task ConnectClientAsync() if (!m_ConnectionManager.NetworkManager.StartClient()) { throw new Exception("NetworkManager StartClient failed"); - } + } } } catch (Exception e)