mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:12:54 +08:00
Cancel request on disposal for safety
This commit is contained in:
parent
923acfbeaf
commit
ccd7c1a17d
@ -134,5 +134,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
this.api = api;
|
||||
updateDisplay();
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
{
|
||||
getScoresRequest?.Cancel();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user