1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 07:23:14 +08:00

Fix test failures due to beatmap lookup logic being active even when model is populated

This commit is contained in:
Bartłomiej Dach 2021-12-04 13:57:39 +01:00
parent bdddaba352
commit b3b239c9a1
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -157,8 +157,11 @@ namespace osu.Game.Screens.OnlinePlay
Schedule(() => ownerAvatar.User = foundUser);
}
var foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);
Schedule(() => Item.Beatmap.Value = foundBeatmap);
if (Item.Beatmap.Value == null)
{
var foundBeatmap = await beatmapLookupCache.GetBeatmapAsync(Item.BeatmapID).ConfigureAwait(false);
Schedule(() => Item.Beatmap.Value = foundBeatmap);
}
}
catch (Exception e)
{