Fix error when MinimumAvailability was Announced and Delay was negative.

Leonardo Galli 8 years ago
parent fbf790e9fd
commit 23754c49dc

@ -98,7 +98,13 @@ namespace NzbDrone.Core.Tv
return true; return true;
} }
return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay); if (MinimumAvailabilityDate == DateTime.MinValue || MinimumAvailabilityDate == DateTime.MaxValue)
{
return DateTime.Now >= MinimumAvailabilityDate;
}
return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay);
} }
public override string ToString() public override string ToString()

Loading…
Cancel
Save