Skip to content

Commit 2862e59

Browse files
Added todo comment for better way to wait
Co-authored-by: Sam Bellomo <[email protected]>
1 parent 81608c3 commit 2862e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/BossRoom/Scripts/Shared/Net/ConnectionManagement/ClientGameNetPortal.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ private IEnumerator TryToReconnect(string lobbyCode)
204204
var leavingLobby = true;
205205
m_LobbyServiceFacade.ForceLeaveLobbyAttempt(() => leavingLobby = false, () => leavingLobby = false);
206206
yield return new WaitWhile(() => leavingLobby); // This is not a clean way of doing this, ideally we would want to replace that logic with a proper await.
207+
// todo should use yield return new WaitUntil(() => task.IsCompleted);
207208
var joiningLobby = true;
208209
m_LobbyServiceFacade.JoinLobbyAsync("", lobbyCode, onSuccess: lobby =>
209210
{

0 commit comments

Comments
 (0)