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();
|
await Downloader.Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Error = ex.Message;
|
||||||
Finished = true;
|
Finished = true;
|
||||||
|
|
||||||
throw new($"An unexpected error occurred preparing download {download.Link} for torrent {torrent.RdName}: {ex.Message}");
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
LogError($"Unable to start download: {ex.Message}", download, torrent);
|
LogError($"Unable to start download: {ex.Message}", download, torrent);
|
||||||
|
continue;
|
||||||
await downloads.UpdateError(download.DownloadId, ex.Message);
|
|
||||||
await downloads.UpdateCompleted(download.DownloadId, DateTimeOffset.UtcNow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Log($"Started download", download, torrent);
|
Log($"Started download", download, torrent);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue