mirror of
https://github.com/ppy/osu
synced 2025-01-31 18:32:14 +00: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()
|
public void Logout()
|
||||||
{
|
{
|
||||||
flushQueue();
|
flushQueue();
|
||||||
|
|
||||||
password = null;
|
password = null;
|
||||||
authentication.Clear();
|
authentication.Clear();
|
||||||
LocalUser.Value = createGuestUser();
|
|
||||||
State = APIState.Offline;
|
State = APIState.Offline;
|
||||||
|
|
||||||
|
Schedule(() => LocalUser.Value = createGuestUser());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static User createGuestUser() => new GuestUser();
|
private static User createGuestUser() => new GuestUser();
|
||||||
|
Loading…
Reference in New Issue
Block a user