Merge pull request #17556 from peppy/fix-multiplayer-unobserved

Fix `MultiplayerMatchSongSelect` potentially attempting to exit when not the current screen
This commit is contained in:
Dan Balasescu 2022-03-30 21:10:11 +09:00 committed by GitHub
commit b60c253831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
{
Schedule(() =>
{
// If an error or server side trigger occurred this screen may have already exited by external means.
if (!this.IsCurrentScreen())
return;
loadingLayer.Hide();
if (t.IsFaulted)