Skip to content

Commit

Permalink
Schedule forcefullyExit call for safety
Browse files Browse the repository at this point in the history
Screen state may have changed at an inopportune moment. Run on local scheduler, not API scheduler to avoid any weirdness.
  • Loading branch information
peppy committed Oct 31, 2019
1 parent 32dabf8 commit 5b405ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Screens/Multi/Multiplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void Start(Func<Player> player)
public void APIStateChanged(IAPIProvider api, APIState state)
{
if (state != APIState.Online)
forcefullyExit();
Schedule(forcefullyExit);
}

private void forcefullyExit()
Expand Down

0 comments on commit 5b405ab

Please sign in to comment.