1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 11:22:58 +08:00

Fix race condition when attempting to start a beatmap during debounce.

This commit is contained in:
Dean Herbert 2017-04-29 20:12:09 +09:00
parent 589e89fed3
commit 2dcb4e9b93

View File

@ -196,6 +196,11 @@ namespace osu.Game.Screens.Select
private void raiseSelect() private void raiseSelect()
{ {
var pendingSelection = selectionChangedDebounce;
selectionChangedDebounce = null;
pendingSelection?.RunTask();
if (Beatmap == null) return; if (Beatmap == null) return;
OnSelected(); OnSelected();