1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Fix bindable potentially being set from background thread

This commit is contained in:
smoogipoo 2019-05-09 13:32:18 +09:00
parent 869136b2fb
commit c69d813745

View File

@ -352,10 +352,12 @@ namespace osu.Game.Online.API
public void Logout()
{
flushQueue();
password = null;
authentication.Clear();
LocalUser.Value = createGuestUser();
State = APIState.Offline;
Schedule(() => LocalUser.Value = createGuestUser());
}
private static User createGuestUser() => new GuestUser();