Addressing bug from qodo review
This commit is contained in:
parent
2db2af4cea
commit
db511929cd
2 changed files with 2 additions and 3 deletions
|
|
@ -102,6 +102,7 @@ public class DownloadClient(Download download, Torrent torrent, String destinati
|
|||
await Downloader.Cancel();
|
||||
}
|
||||
|
||||
Error = ex.Message;
|
||||
Finished = true;
|
||||
|
||||
throw new($"An unexpected error occurred preparing download {download.Link} for torrent {torrent.RdName}: {ex.Message}");
|
||||
|
|
|
|||
|
|
@ -544,9 +544,7 @@ public class TorrentRunner(ILogger<TorrentRunner> logger, Torrents torrents, Dow
|
|||
catch (Exception ex)
|
||||
{
|
||||
LogError($"Unable to start download: {ex.Message}", download, torrent);
|
||||
|
||||
await downloads.UpdateError(download.DownloadId, ex.Message);
|
||||
await downloads.UpdateCompleted(download.DownloadId, DateTimeOffset.UtcNow);
|
||||
continue;
|
||||
}
|
||||
|
||||
Log($"Started download", download, torrent);
|
||||
|
|
|
|||
Loading…
Reference in a new issue