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:
parent
869136b2fb
commit
c69d813745
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user