Fixed bug where it would redownload file that was already downloaded.

This commit is contained in:
Roger Far 2021-01-14 16:01:05 -07:00
parent b3dd72234f
commit 63e44d02ef
2 changed files with 2 additions and 2 deletions

View file

@ -237,7 +237,7 @@ namespace RdtClient.Service.Services
// Check if torrent is complete
if (torrent.Downloads.Count > 0)
{
var allComplete = torrent.Downloads.All(m => m.UnpackingFinished != null);
var allComplete = torrent.Downloads.All(m => m.Completed != null);
if (allComplete)
{

View file

@ -228,7 +228,7 @@ namespace RdtClient.Service.Services
var downloadPath = await DownloadPath(download.Torrent);
download.DownloadFinished = null;
await _downloads.UpdateDownloadStarted(download.DownloadId, null);
await _downloads.UpdateDownloadFinished(download.DownloadId, null);
download.Completed = null;
await _downloads.UpdateCompleted(download.DownloadId, null);