1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 13:22:55 +08:00

Fix scheduled task not being canceled

This commit is contained in:
MrTheMake 2017-05-24 02:22:30 +02:00
parent e6e443dbce
commit 09adb23591

View File

@ -319,7 +319,10 @@ namespace osu.Game.Screens.Select
bool beatmapSetChange = false; bool beatmapSetChange = false;
if (beatmap.Equals(Beatmap?.BeatmapInfo)) if (beatmap.Equals(Beatmap?.BeatmapInfo))
{
selectionChangedDebounce?.Cancel();
return; return;
}
if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID) if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID)
sampleChangeDifficulty.Play(); sampleChangeDifficulty.Play();