mirror of https://github.com/ppy/osu
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 @@ private void forcefullyExit()
|
|||
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