1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

Fix potential crash when losing network connectivity at online play screen

Addresses #20448.
This commit is contained in:
Dean Herbert 2022-09-27 17:52:29 +09:00
parent aa3956cfbb
commit 3ece7205ed

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