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:
parent
7c9d3c9742
commit
d20011ba58
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user