Fixed: Testing indexers, connections and download clients

This commit is contained in:
Mark McDowall 2015-04-18 22:56:36 -07:00
parent f831dbd789
commit 4c9f13cb26
1 changed files with 8 additions and 4 deletions

View File

@ -76,7 +76,10 @@ namespace NzbDrone.Api
{
var providerDefinition = GetDefinition(providerResource, false);
Test(providerDefinition, false);
if (providerDefinition.Enable)
{
Test(providerDefinition, false);
}
providerDefinition = _providerFactory.Create(providerDefinition);
@ -87,7 +90,10 @@ namespace NzbDrone.Api
{
var providerDefinition = GetDefinition(providerResource, false);
Test(providerDefinition, false);
if (providerDefinition.Enable)
{
Test(providerDefinition, false);
}
_providerFactory.Update(providerDefinition);
}
@ -166,8 +172,6 @@ namespace NzbDrone.Api
protected virtual void Test(TProviderDefinition definition, bool includeWarnings)
{
if (!definition.Enable) return;
var validationResult = _providerFactory.Test(definition);
VerifyValidationResult(validationResult, includeWarnings);