mirror of https://github.com/ppy/osu
Fix beatmap leaderboard potentially showing incorrect leaderboard
This commit is contained in:
parent
3cd810f332
commit
bb15ee50e0
|
@ -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(() =>
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue