Fixed bug where the download and unpack handlers were not properly dispatched.

This commit is contained in:
Roger Far 2021-07-31 14:50:59 -06:00
parent a121593829
commit 05e565ff1f
5 changed files with 9 additions and 3 deletions

View file

@ -14,7 +14,7 @@ export class DownloadStatusPipe implements PipeTransform {
}
if (value.error) {
return `Error`;
return value.error;
}
if (value.completed != null) {

View file

@ -199,6 +199,10 @@
<ng-container *ngIf="download.link">
{{ download.link | decodeURI }}
</ng-container>
<ng-container *ngIf="!download.link">
{{ download.path }}
</ng-container>
</td>
<td>
{{ download.bytesTotal | filesize }}

View file

@ -56,7 +56,7 @@ namespace RdtClient.Service.Services
var uri = new Uri(_download.Link);
await Task.Run(async delegate
Task.Run(async delegate
{
switch (settings.DownloadClient)
{

View file

@ -225,6 +225,8 @@ namespace RdtClient.Service.Services
await _downloads.UpdateCompleted(download.DownloadId, DateTimeOffset.UtcNow);
download.Error = ex.Message;
download.Completed = DateTimeOffset.UtcNow;
Log.Information($"Cannot unrestrict: {ex.Message}");
continue;
}

View file

@ -50,7 +50,7 @@ namespace RdtClient.Service.Services
throw new Exception("Invalid download path");
}
await Task.Run(async delegate
Task.Run(async delegate
{
if (!_cancelled)
{