New: Don't forcibly retest indexers/download clients/connections on save if previously enabled

Closes #1028
pull/3953/head
Mark McDowall 4 years ago
parent 5a42d2a36d
commit b2b1600ebe

@ -84,8 +84,10 @@ namespace Sonarr.Api.V3
private void UpdateProvider(TProviderResource providerResource) private void UpdateProvider(TProviderResource providerResource)
{ {
var providerDefinition = GetDefinition(providerResource, false); var providerDefinition = GetDefinition(providerResource, false);
var existingDefinition = _providerFactory.Get(providerDefinition.Id);
if (providerDefinition.Enable) // Only test existing definitions if it was previously disabled
if (providerDefinition.Enable && !existingDefinition.Enable)
{ {
Test(providerDefinition, false); Test(providerDefinition, false);
} }

Loading…
Cancel
Save