1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 07:09:54 +08:00

Fix bindable potentially being set from background thread

This commit is contained in:
smoogipoo
2019-05-09 13:32:18 +09:00
Unverified
parent 869136b2fb
commit c69d813745
+3 -1
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();