File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Assets/Scripts/ConnectionManagement/ConnectionState Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55namespace Unity . BossRoom . ConnectionManagement
66{
77 /// <summary>
8- /// Connection state corresponding to when a client is attempting to connect to a server. Starts the client when
9- /// entering. If successful, transitions to the ClientConnected state. If not, transitions to the Offline state.
8+ /// Connection state corresponding to when a client is attempting to connect to a server. Starts the client when
9+ /// entering. If successful, transitions to the ClientConnected state. If not, transitions to the Offline state.
1010 /// </summary>
1111 class ClientConnectingState : OnlineState
1212 {
@@ -51,10 +51,10 @@ void StartingClientFailed()
5151 var connectStatus = JsonUtility . FromJson < ConnectStatus > ( disconnectReason ) ;
5252 m_ConnectStatusPublisher . Publish ( connectStatus ) ;
5353 }
54+
5455 m_ConnectionManager . ChangeState ( m_ConnectionManager . m_Offline ) ;
5556 }
5657
57-
5858 internal async Task ConnectClientAsync ( )
5959 {
6060 try
@@ -66,7 +66,7 @@ internal async Task ConnectClientAsync()
6666 if ( ! m_ConnectionManager . NetworkManager . StartClient ( ) )
6767 {
6868 throw new Exception ( "NetworkManager StartClient failed" ) ;
69- }
69+ }
7070 }
7171 }
7272 catch ( Exception e )
You can’t perform that action at this time.
0 commit comments