Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 9b9df985de134b998b7642831fe548b77b757a96 1 parent 1d985fc
authored January 04, 2013

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. 3  xbmc/utils/JobManager.cpp
3  xbmc/utils/JobManager.cpp
@@ -203,6 +203,9 @@ unsigned int CJobManager::AddJob(CJob *job, IJobCallback *callback, CJob::PRIORI
203 203
 {
204 204
   CSingleLock lock(m_section);
205 205
 
  206
+  if (!m_running)
  207
+    return 0;
  208
+
206 209
   // increment the job counter, ensuring 0 (invalid job) is never hit
207 210
   m_jobCounter++;
208 211
   if (m_jobCounter == 0)

2 notes on commit 9b9df98

Lars Op den Kamp
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.