last fix for deleted job didn't work, this should fix it.

This commit is contained in:
kay.one 2011-12-01 23:26:38 -08:00
commit ce8713d953
2 changed files with 25 additions and 4 deletions

View file

@ -76,7 +76,7 @@ namespace NzbDrone.Core.Jobs
foreach (var currentJob in currentJobs)
{
if (!_jobs.Any(c => c.Name == currentJob.Name))
if (!_jobs.Any(c => c.GetType().ToString() == currentJob.TypeName))
{
logger.Debug("Removing job from database '{0}'", currentJob.Name);
_database.Delete(currentJob);