Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

if the job manager isn't running, don't add new jobs

  • Loading branch information...
commit 9b9df985de134b998b7642831fe548b77b757a96 1 parent 1d985fc
Jonathan Marshall authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/utils/JobManager.cpp
View
3  xbmc/utils/JobManager.cpp
@@ -203,6 +203,9 @@ unsigned int CJobManager::AddJob(CJob *job, IJobCallback *callback, CJob::PRIORI
{
CSingleLock lock(m_section);
+ if (!m_running)
+ return 0;
+
// increment the job counter, ensuring 0 (invalid job) is never hit
m_jobCounter++;
if (m_jobCounter == 0)

2 comments on commit 9b9df98

@opdenkamp
Collaborator

@jmarshallnz jobs are still being run on exit and don't seem to be interrupted/stopped. in my case there was some video info scan running or started after i pressed quit, and the result was not stored. which means the same video file is scanned each time on exit if i don't let it finish.

@jmarshallnz
Owner
Please sign in to comment.
Something went wrong with that request. Please try again.