From 2dcb4e9b936492ef04d825f7feb77644fe71cc9e Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sat, 29 Apr 2017 20:12:09 +0900 Subject: [PATCH] Fix race condition when attempting to start a beatmap during debounce. --- osu.Game/Screens/Select/SongSelect.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs index 08a58ab42c..c8b46d5888 100644 --- a/osu.Game/Screens/Select/SongSelect.cs +++ b/osu.Game/Screens/Select/SongSelect.cs @@ -196,6 +196,11 @@ namespace osu.Game.Screens.Select private void raiseSelect() { + var pendingSelection = selectionChangedDebounce; + selectionChangedDebounce = null; + + pendingSelection?.RunTask(); + if (Beatmap == null) return; OnSelected();