From 099f24afeaac170fd1f25b58b2c254df0a2dafd2 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 28 Oct 2017 23:14:40 -0400 Subject: [PATCH] Fixed: Abort Newznab indexer Test if connection failed. --- src/NzbDrone.Core/Indexers/Newznab/Newznab.cs | 3 ++- src/NzbDrone.Core/Indexers/Torznab/Torznab.cs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs index 302316336..bd16cc4d5 100644 --- a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs +++ b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using FluentValidation.Results; @@ -92,6 +92,7 @@ protected override void Test(List failures) { base.Test(failures); + if (failures.Any()) return; failures.AddIfNotNull(TestCapabilities()); } diff --git a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs index e1c2896e6..6dc9591d1 100644 --- a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs +++ b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using FluentValidation.Results; @@ -80,6 +80,7 @@ protected override void Test(List failures) { base.Test(failures); + if (failures.Any()) return; failures.AddIfNotNull(TestCapabilities()); }