Fix race condition causing some people being unable to connect. (#19920)
This commit is contained in:
committed by
GitHub
parent
f23e7024a6
commit
e18f731b91
@@ -76,8 +76,6 @@ namespace Content.Client.Lobby.UI
|
||||
AddChild(vBox);
|
||||
|
||||
UpdateUI();
|
||||
|
||||
_preferencesManager.OnServerDataLoaded += UpdateUI;
|
||||
}
|
||||
|
||||
public Button CharacterSetupButton { get; }
|
||||
@@ -85,7 +83,6 @@ namespace Content.Client.Lobby.UI
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
base.Dispose(disposing);
|
||||
_preferencesManager.OnServerDataLoaded -= UpdateUI;
|
||||
|
||||
if (!disposing) return;
|
||||
if (_previewDummy != null) _entityManager.DeleteEntity(_previewDummy.Value);
|
||||
|
||||
Reference in New Issue
Block a user