Skip to content

Commit edd5b64

Browse files
fix: auth signin error on startup [MTT-3581] (#658)
* Having LobbyJoiningUI subscribe to the UpdateRunner only when it is shown
1 parent 8f382e8 commit edd5b64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ void InjectDependenciesAndInitialize(
5353
m_LobbyUIMediator = lobbyUIMediator;
5454
m_UpdateRunner = updateRunner;
5555

56-
m_UpdateRunner.Subscribe(PeriodicRefresh, 10f);
57-
5856
m_Subscriptions = localLobbiesRefreshedSub.Subscribe(UpdateUI);
5957
}
6058

@@ -142,12 +140,14 @@ public void Show()
142140
m_CanvasGroup.blocksRaycasts = true;
143141
m_JoinCodeField.text = "";
144142
OnRefresh();
143+
m_UpdateRunner.Subscribe(PeriodicRefresh, 10f);
145144
}
146145

147146
public void Hide()
148147
{
149148
m_CanvasGroup.alpha = 0f;
150149
m_CanvasGroup.blocksRaycasts = false;
150+
m_UpdateRunner.Unsubscribe(PeriodicRefresh);
151151
}
152152
}
153153
}

0 commit comments

Comments
 (0)