1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Regression prevented indexers from being re-enabled after a successful Test.

ref #1961
This commit is contained in:
Taloth Saldono 2017-06-17 23:41:38 +02:00
parent ab07a40931
commit 87f3cc9014
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ public override ValidationResult Test(DownloadClientDefinition definition)
{ {
var result = base.Test(definition); var result = base.Test(definition);
if (result == null && definition.Id != 0) if ((result == null || result.IsValid) && definition.Id != 0)
{ {
_downloadClientStatusService.RecordSuccess(definition.Id); _downloadClientStatusService.RecordSuccess(definition.Id);
} }

View File

@ -90,7 +90,7 @@ public override ValidationResult Test(IndexerDefinition definition)
{ {
var result = base.Test(definition); var result = base.Test(definition);
if (result == null && definition.Id != 0) if ((result == null || result.IsValid) && definition.Id != 0)
{ {
_indexerStatusService.RecordSuccess(definition.Id); _indexerStatusService.RecordSuccess(definition.Id);
} }