Fix some web requests being run after disposal of their owner

This commit is contained in:
Dean Herbert
2018-09-05 10:23:23 +09:00
parent b0f9c0f6f0
commit 923acfbeaf
7 changed files with 56 additions and 30 deletions

View File

@ -62,7 +62,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
loading = true;
getScoresRequest = new GetScoresRequest(beatmap, beatmap.Ruleset);
getScoresRequest.Success += r => Scores = r.Scores;
getScoresRequest.Success += r => Schedule(() => Scores = r.Scores);
api.Queue(getScoresRequest);
}
}