Merge pull request #20504 from peppy/fix-playlist-connectivity-crash

Fix potential crash when losing network connectivity in multiplayer/playlists screens
This commit is contained in:
Dan Balasescu
2022-09-27 18:36:24 +09:00
committed by GitHub

View File

@ -105,7 +105,8 @@ namespace osu.Game.Screens.OnlinePlay
while (this.IsCurrentScreen())
this.Exit();
}
else
// Also handle the case where a child screen is current (ie. gameplay).
else if (this.GetChildScreen() != null)
{
this.MakeCurrent();
Schedule(forcefullyExit);