Fix `MultiplayerMatchSongSelect` potentially attempting to exit when not the current screen

This commit is contained in:
Dean Herbert 2022-03-30 20:35:11 +09:00
parent c311e11496
commit 671386ba6c
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ protected override void SelectItem(PlaylistItem item)
{
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)