Fix race condition causing some people being unable to connect. (#19920)

This commit is contained in:
Pieter-Jan Briers
2023-09-08 23:52:36 +02:00
committed by GitHub
parent f23e7024a6
commit e18f731b91
2 changed files with 11 additions and 3 deletions

View File

@@ -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);