mirror of
https://github.com/ppy/osu.git
synced 2026-06-07 05:43:41 +08:00
Move cancellation below new equality check
This commit is contained in:
@@ -115,8 +115,6 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
|
||||
private void checkForAutomaticDownload()
|
||||
{
|
||||
downloadCheckCancellation?.Cancel();
|
||||
|
||||
if (client.Room == null)
|
||||
return;
|
||||
|
||||
@@ -143,6 +141,8 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
|
||||
|
||||
lastDownloadCheckedBeatmapId = item.BeatmapID;
|
||||
|
||||
downloadCheckCancellation?.Cancel();
|
||||
|
||||
// In a perfect world we'd use BeatmapAvailability, but there's no event-driven flow for when a selection changes.
|
||||
// ie. if selection changes from "not downloaded" to another "not downloaded" we wouldn't get a value changed raised.
|
||||
beatmapLookupCache
|
||||
|
||||
Reference in New Issue
Block a user