mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 11:42:56 +08:00
Fix potential crash when losing network connectivity at online play screen
Addresses #20448.
This commit is contained in:
parent
aa3956cfbb
commit
3ece7205ed
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user