mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 21:03:08 +08:00
Schedule forcefullyExit call for safety
Screen state may have changed at an inopportune moment. Run on local scheduler, not API scheduler to avoid any weirdness.
This commit is contained in:
parent
32dabf80a6
commit
5b405abc52
@ -167,7 +167,7 @@ namespace osu.Game.Screens.Multi
|
||||
public void APIStateChanged(IAPIProvider api, APIState state)
|
||||
{
|
||||
if (state != APIState.Online)
|
||||
forcefullyExit();
|
||||
Schedule(forcefullyExit);
|
||||
}
|
||||
|
||||
private void forcefullyExit()
|
||||
|
Loading…
Reference in New Issue
Block a user