1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 02:40:01 +00:00

Should no longer log error if download client was removed/disabled between CDH updates.

This commit is contained in:
Taloth Saldono 2014-10-14 22:21:51 +02:00
parent 20fc66c8cc
commit ab264b3c06

View file

@ -199,7 +199,13 @@ private void ProcessTrackedDownloads()
foreach (var trackedDownload in trackedDownloads)
{
var downloadClient = downloadClients.Single(v => v.Definition.Id == trackedDownload.DownloadClient);
var downloadClient = downloadClients.SingleOrDefault(v => v.Definition.Id == trackedDownload.DownloadClient);
if (downloadClient == null)
{
_logger.Debug("TrackedDownload for unknown download client, download client was probably removed or disabled between scans.");
continue;
}
var state = trackedDownload.State;