Skip to content
Browse files

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

  • Loading branch information...
1 parent 1d985fc commit 9b9df985de134b998b7642831fe548b77b757a96 Jonathan Marshall committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  xbmc/utils/JobManager.cpp
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
if (m_jobCounter == 0)

2 comments on commit 9b9df98


@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.

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