Schedule joinFailed callback for added safety

This commit is contained in:
Dean Herbert 2021-10-19 15:54:10 +09:00
parent da524261c0
commit 480dc57102

View File

@ -253,7 +253,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
GetContainingInputManager().TriggerFocusContention(passwordTextbox);
}
private void joinFailed(string error)
private void joinFailed(string error) => Schedule(() =>
{
passwordTextbox.Text = string.Empty;
@ -269,7 +269,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
Body.Shake();
sampleJoinFail?.Play();
}
});
}
}
}