Improve DownloadClientProvider blockedClientStatus var
This commit is contained in:
parent
1c2359e66e
commit
b327feeaf6
|
@ -109,9 +109,7 @@ namespace NzbDrone.Core.Download
|
||||||
|
|
||||||
foreach (var client in clients)
|
foreach (var client in clients)
|
||||||
{
|
{
|
||||||
DownloadClientStatus blockedClientStatus;
|
if (blockedClients.TryGetValue(client.Definition.Id, out var blockedClientStatus))
|
||||||
|
|
||||||
if (blockedClients.TryGetValue(client.Definition.Id, out blockedClientStatus))
|
|
||||||
{
|
{
|
||||||
_logger.Debug("Temporarily ignoring client {0} till {1} due to recent failures.", client.Definition.Name, blockedClientStatus.DisabledTill.Value.ToLocalTime());
|
_logger.Debug("Temporarily ignoring client {0} till {1} due to recent failures.", client.Definition.Name, blockedClientStatus.DisabledTill.Value.ToLocalTime());
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue