Skip to content

Commit 68f4584

Browse files
committed
adding await to StartClientUnityRelayModeAync call
1 parent c254631 commit 68f4584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/BossRoom/Scripts/Game/Client/UI/Lobby/LobbyUIMediator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,13 @@ public async void QuickJoinRequest()
205205
}
206206
}
207207

208-
void OnJoinedLobby(Lobby remoteLobby)
208+
async void OnJoinedLobby(Lobby remoteLobby)
209209
{
210210
m_LobbyServiceFacade.SetRemoteLobby(remoteLobby);
211211
m_GameNetPortal.PlayerName = m_LocalUser.DisplayName;
212212

213213
Debug.Log($"Joined lobby with code: {m_LocalLobby.LobbyCode}, Internal Relay Join Code{m_LocalLobby.RelayJoinCode}");
214-
m_ClientNetPortal.StartClientUnityRelayModeAsync(OnRelayJoinFailed);
214+
await m_ClientNetPortal.StartClientUnityRelayModeAsync(OnRelayJoinFailed);
215215

216216
void OnRelayJoinFailed(string message)
217217
{

0 commit comments

Comments
 (0)