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
1 changed files with 2 additions and 1 deletions

View File

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