1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 23:10:51 +08:00

Fix scheduled task not being canceled

This commit is contained in:
MrTheMake
2017-05-24 02:22:30 +02:00
Unverified
parent e6e443dbce
commit 09adb23591
+4 -1
View File
@@ -319,7 +319,10 @@ namespace osu.Game.Screens.Select
bool beatmapSetChange = false;
if (beatmap.Equals(Beatmap?.BeatmapInfo))
{
selectionChangedDebounce?.Cancel();
return;
}
if (beatmap.BeatmapSetInfoID == selectionChangeNoBounce?.BeatmapSetInfoID)
sampleChangeDifficulty.Play();
@@ -330,7 +333,7 @@ namespace osu.Game.Screens.Select
}
selectionChangeNoBounce = beatmap;
selectionChangedDebounce?.Cancel();
selectionChangedDebounce = Scheduler.AddDelayed(delegate
{