1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

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

Closes #1028
This commit is contained in:
Mark McDowall 2020-09-09 01:09:45 -07:00
parent 5a42d2a36d
commit b2b1600ebe

View File

@ -84,8 +84,10 @@ private int CreateProvider(TProviderResource providerResource)
private void UpdateProvider(TProviderResource providerResource)
{
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);
}