Skip to content

Commit

Permalink
server: don't dispose of cache thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
redstonekasi committed Aug 21, 2024
1 parent b4728f0 commit baa903a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions UwuRadio.Server/Services/DownloadService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public record SongFileInfo(FileInfo File, string Md5, Duration Length);
/// <summary>
/// This service downloads songs when required and keeps track of them on disk
/// </summary>
public class DownloadService : IDisposable
public class DownloadService
{
private readonly Queue<Song> _downloadQueue = new();
private readonly Dictionary<string, SongFileInfo> _fileInfos = new();
Expand All @@ -20,8 +20,6 @@ public class DownloadService : IDisposable

public DownloadService() { Directory.CreateDirectory(Constants.C.CacheFolder); }

public void Dispose() => Directory.Delete(Constants.C.CacheFolder, true);

public bool IsBlacklisted(Song song) => _downloadBlacklist.Contains(song.Id);

public void EnsureDownloaded(Song song)
Expand Down

0 comments on commit baa903a

Please sign in to comment.