1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 23:22:55 +08:00

Fix an endless feedback loop

This commit is contained in:
Dean Herbert 2018-05-17 17:56:25 +09:00
parent 7c9d3c9742
commit d20011ba58

View File

@ -7,7 +7,12 @@ namespace osu.Game.Screens.Select
{
protected override bool OnSelectionFinalised()
{
Exit();
Schedule(() =>
{
// needs to be scheduled else we enter an infinite feedback loop.
if (IsCurrentScreen) Exit();
});
return true;
}
}