Addressing bug from qodo review

This commit is contained in:
omgbeez 2026-02-20 16:13:25 -05:00 committed by Clifford Roche
parent 2db2af4cea
commit db511929cd
2 changed files with 2 additions and 3 deletions

View file

@ -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}");

View file

@ -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);