Don't store successful results for invalid providers

This commit is contained in:
Mark McDowall 2023-11-09 15:33:03 -08:00
parent 1e295d81f2
commit de23182d59
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ namespace NzbDrone.Core.ThingiProvider.Status
public virtual void RecordSuccess(int providerId) public virtual void RecordSuccess(int providerId)
{ {
if (providerId <= 0)
{
return;
}
lock (_syncRoot) lock (_syncRoot)
{ {
var status = GetProviderStatus(providerId); var status = GetProviderStatus(providerId);