Fix beatmap leaderboard potentially showing incorrect leaderboard

This commit is contained in:
Dean Herbert 2023-01-24 13:52:59 +09:00
parent 3cd810f332
commit bb15ee50e0
1 changed files with 3 additions and 2 deletions

View File

@ -104,6 +104,9 @@ private void load()
protected override APIRequest? FetchScores(CancellationToken cancellationToken)
{
scoreRetrievalRequest?.Cancel();
scoreRetrievalRequest = null;
var fetchBeatmapInfo = BeatmapInfo;
if (fetchBeatmapInfo == null)
@ -152,8 +155,6 @@ private void load()
else if (filterMods)
requestMods = mods.Value;
scoreRetrievalRequest?.Cancel();
var newRequest = new GetScoresRequest(fetchBeatmapInfo, fetchRuleset, Scope, requestMods);
newRequest.Success += response => Schedule(() =>
{