mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:12:57 +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())
|
while (this.IsCurrentScreen())
|
||||||
this.Exit();
|
this.Exit();
|
||||||
}
|
}
|
||||||
else
|
// Also handle the case where a child screen is current (ie. gameplay).
|
||||||
|
else if (this.GetChildScreen() != null)
|
||||||
{
|
{
|
||||||
this.MakeCurrent();
|
this.MakeCurrent();
|
||||||
Schedule(forcefullyExit);
|
Schedule(forcefullyExit);
|
||||||
|
Loading…
Reference in New Issue
Block a user