1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 14:32:55 +08:00

Cancel request on disposal for safety

This commit is contained in:
Dean Herbert 2018-09-06 17:04:33 +09:00
parent 923acfbeaf
commit ccd7c1a17d

View File

@ -134,5 +134,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
this.api = api; this.api = api;
updateDisplay(); updateDisplay();
} }
protected override void Dispose(bool isDisposing)
{
getScoresRequest?.Cancel();
}
} }
} }