File tree 2 files changed +6
-4
lines changed
Assets/Scripts/ConnectionManagement/ConnectionState
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,9 @@ class ClientConnectingState : OnlineState
22
22
23
23
public override void Enter ( )
24
24
{
25
- ConnectClient ( ) ;
25
+ #pragma warning disable 4014
26
+ ConnectClientAsync ( ) ;
27
+ #pragma warning restore 4014
26
28
}
27
29
28
30
public override void Exit ( ) { }
@@ -45,7 +47,7 @@ public override void OnDisconnectReasonReceived(ConnectStatus disconnectReason)
45
47
m_ConnectionManager . ChangeState ( m_ConnectionManager . m_DisconnectingWithReason ) ;
46
48
}
47
49
48
- protected async Task ConnectClient ( )
50
+ protected async Task ConnectClientAsync ( )
49
51
{
50
52
bool success = true ;
51
53
if ( m_LobbyServiceFacade . CurrentUnityLobby != null )
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ IEnumerator ReconnectCoroutine()
88
88
if ( joiningLobby . Result . Success )
89
89
{
90
90
m_LobbyServiceFacade . SetRemoteLobby ( joiningLobby . Result . Lobby ) ;
91
- var connectingToRelay = ConnectClient ( ) ;
91
+ var connectingToRelay = ConnectClientAsync ( ) ;
92
92
yield return new WaitUntil ( ( ) => connectingToRelay . IsCompleted ) ;
93
93
}
94
94
else
@@ -99,7 +99,7 @@ IEnumerator ReconnectCoroutine()
99
99
}
100
100
else
101
101
{
102
- var connectingClient = ConnectClient ( ) ;
102
+ var connectingClient = ConnectClientAsync ( ) ;
103
103
yield return new WaitUntil ( ( ) => connectingClient . IsCompleted ) ;
104
104
}
105
105
}
You can’t perform that action at this time.
0 commit comments