projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9f97d1
)
if the job manager isn't running, don't add new jobs
author
Jonathan Marshall
<jmarshall@never.you.mind>
Thu, 3 Jan 2013 20:25:53 +0000
(09:25 +1300)
committer
S. Davilla
<davilla@4pi.com>
Sun, 6 Jan 2013 13:30:30 +0000
(08:30 -0500)
xbmc/utils/JobManager.cpp
patch
|
blob
|
history
diff --git
a/xbmc/utils/JobManager.cpp
b/xbmc/utils/JobManager.cpp
index
d3b3be1
..
118b94f
100644
(file)
--- a/
xbmc/utils/JobManager.cpp
+++ b/
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)