Skip to content

Commit

Permalink
if the job manager isn't running, don't add new jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall authored and davilla committed Jan 6, 2013
1 parent a9f97d1 commit b1f14a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xbmc/utils/JobManager.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit b1f14a7

Please sign in to comment.