File tree Expand file tree Collapse file tree
Assets/Scripts/ConnectionManagement/ConnectionState Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ class ClientConnectingState : OnlineState
2222
2323 public override void Enter ( )
2424 {
25- ConnectClient ( ) ;
25+ #pragma warning disable 4014
26+ ConnectClientAsync ( ) ;
27+ #pragma warning restore 4014
2628 }
2729
2830 public override void Exit ( ) { }
@@ -45,7 +47,7 @@ public override void OnDisconnectReasonReceived(ConnectStatus disconnectReason)
4547 m_ConnectionManager . ChangeState ( m_ConnectionManager . m_DisconnectingWithReason ) ;
4648 }
4749
48- protected async Task ConnectClient ( )
50+ protected async Task ConnectClientAsync ( )
4951 {
5052 bool success = true ;
5153 if ( m_LobbyServiceFacade . CurrentUnityLobby != null )
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ IEnumerator ReconnectCoroutine()
8888 if ( joiningLobby . Result . Success )
8989 {
9090 m_LobbyServiceFacade . SetRemoteLobby ( joiningLobby . Result . Lobby ) ;
91- var connectingToRelay = ConnectClient ( ) ;
91+ var connectingToRelay = ConnectClientAsync ( ) ;
9292 yield return new WaitUntil ( ( ) => connectingToRelay . IsCompleted ) ;
9393 }
9494 else
@@ -99,7 +99,7 @@ IEnumerator ReconnectCoroutine()
9999 }
100100 else
101101 {
102- var connectingClient = ConnectClient ( ) ;
102+ var connectingClient = ConnectClientAsync ( ) ;
103103 yield return new WaitUntil ( ( ) => connectingClient . IsCompleted ) ;
104104 }
105105 }
You can’t perform that action at this time.
0 commit comments