Fixed bug where it would redownload file that was already downloaded.
This commit is contained in:
parent
b3dd72234f
commit
63e44d02ef
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue