Dispose BeatmapOnlineLookupQueue cache download request

This commit is contained in:
Salman Ahmed
2020-05-22 17:26:37 +03:00
parent ae133c2c2d
commit 3d3cc2c15e
3 changed files with 13 additions and 2 deletions

View File

@ -23,7 +23,7 @@ namespace osu.Game.Beatmaps
{
public partial class BeatmapManager
{
private class BeatmapOnlineLookupQueue
private class BeatmapOnlineLookupQueue : IDisposable
{
private readonly IAPIProvider api;
private readonly Storage storage;
@ -180,6 +180,11 @@ namespace osu.Game.Beatmaps
return false;
}
public void Dispose()
{
cacheDownloadRequest?.Dispose();
}
[Serializable]
[SuppressMessage("ReSharper", "InconsistentNaming")]
private class CachedOnlineBeatmapLookup