Fix hanging Aria2 downloads when files are being copied or cannot be found on the host.
This commit is contained in:
parent
e700939cfa
commit
d43774d9b5
1 changed files with 7 additions and 0 deletions
|
|
@ -203,6 +203,13 @@ public class Aria2cDownloader : IDownloader
|
||||||
var retryCount = 0;
|
var retryCount = 0;
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
DownloadProgress?.Invoke(this, new()
|
||||||
|
{
|
||||||
|
BytesDone = download.CompletedLength,
|
||||||
|
BytesTotal = download.TotalLength,
|
||||||
|
Speed = download.DownloadSpeed
|
||||||
|
});
|
||||||
|
|
||||||
if (retryCount >= 10)
|
if (retryCount >= 10)
|
||||||
{
|
{
|
||||||
DownloadComplete?.Invoke(this, new()
|
DownloadComplete?.Invoke(this, new()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue