From 87f3cc90142edeb642e26c1415d1ab31fce2e235 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 17 Jun 2017 23:41:38 +0200 Subject: [PATCH] Fixed: Regression prevented indexers from being re-enabled after a successful Test. ref #1961 --- src/NzbDrone.Core/Download/DownloadClientFactory.cs | 2 +- src/NzbDrone.Core/Indexers/IndexerFactory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/DownloadClientFactory.cs b/src/NzbDrone.Core/Download/DownloadClientFactory.cs index 21a049f10..8ba7be505 100644 --- a/src/NzbDrone.Core/Download/DownloadClientFactory.cs +++ b/src/NzbDrone.Core/Download/DownloadClientFactory.cs @@ -76,7 +76,7 @@ public override ValidationResult Test(DownloadClientDefinition definition) { var result = base.Test(definition); - if (result == null && definition.Id != 0) + if ((result == null || result.IsValid) && definition.Id != 0) { _downloadClientStatusService.RecordSuccess(definition.Id); } diff --git a/src/NzbDrone.Core/Indexers/IndexerFactory.cs b/src/NzbDrone.Core/Indexers/IndexerFactory.cs index e133f3a62..0d918b980 100644 --- a/src/NzbDrone.Core/Indexers/IndexerFactory.cs +++ b/src/NzbDrone.Core/Indexers/IndexerFactory.cs @@ -90,7 +90,7 @@ public override ValidationResult Test(IndexerDefinition definition) { var result = base.Test(definition); - if (result == null && definition.Id != 0) + if ((result == null || result.IsValid) && definition.Id != 0) { _indexerStatusService.RecordSuccess(definition.Id); }