1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00:00

Merge branch 'master' of git://github.com/kayone/NzbDrone

This commit is contained in:
Mark McDowall 2011-09-03 20:05:56 -07:00
commit 421ba466a8

View file

@ -11,6 +11,7 @@ using NzbDrone.Core.Model;
using NzbDrone.Core.Model.Notification;
using NzbDrone.Core.Repository;
using PetaPoco;
using ThreadState = System.Threading.ThreadState;
namespace NzbDrone.Core.Providers.Jobs
{
@ -161,7 +162,7 @@ namespace NzbDrone.Core.Providers.Jobs
_isRunning = true;
}
if (_jobThread == null || !_jobThread.IsAlive)
if (_jobThread == null || _jobThread.ThreadState != ThreadState.Running)
{
Logger.Trace("Initializing queue processor thread");
@ -178,6 +179,8 @@ namespace NzbDrone.Core.Providers.Jobs
finally
{
_isRunning = false;
_jobThread.Abort();
}
};