Fix hanging Aria2 downloads when files are being copied or cannot be found on the host.

This commit is contained in:
Roger Far 2025-01-05 20:49:55 -07:00
parent e700939cfa
commit d43774d9b5

View file

@ -203,6 +203,13 @@ public class Aria2cDownloader : IDownloader
var retryCount = 0;
while (true)
{
DownloadProgress?.Invoke(this, new()
{
BytesDone = download.CompletedLength,
BytesTotal = download.TotalLength,
Speed = download.DownloadSpeed
});
if (retryCount >= 10)
{
DownloadComplete?.Invoke(this, new()