1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

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
commit 8642ed7631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);