1
0
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:
Dean Herbert 2019-10-31 13:43:25 +09:00
parent 32dabf80a6
commit 5b405abc52

View File

@ -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()