From d43774d9b56bedee0231262854158450d1aeeddd Mon Sep 17 00:00:00 2001 From: Roger Far Date: Sun, 5 Jan 2025 20:49:55 -0700 Subject: [PATCH] Fix hanging Aria2 downloads when files are being copied or cannot be found on the host. --- .../Services/Downloaders/Aria2cDownloader.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/RdtClient.Service/Services/Downloaders/Aria2cDownloader.cs b/server/RdtClient.Service/Services/Downloaders/Aria2cDownloader.cs index 1b2d172..8ab4cf3 100644 --- a/server/RdtClient.Service/Services/Downloaders/Aria2cDownloader.cs +++ b/server/RdtClient.Service/Services/Downloaders/Aria2cDownloader.cs @@ -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()