projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9b6e35
)
Maybe fix sensitivity when jobs are running.
author
Carl Hetherington
<cth@carlh.net>
Wed, 24 Oct 2012 23:20:54 +0000
(
00:20
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 24 Oct 2012 23:20:54 +0000
(
00:20
+0100)
src/lib/job_manager.cc
patch
|
blob
|
history
diff --git
a/src/lib/job_manager.cc
b/src/lib/job_manager.cc
index 1fae179656222b299192d71652ad5abe719ec844..507bf6791ba33e608e94bfe49f53b9066d409f39 100644
(file)
--- a/
src/lib/job_manager.cc
+++ b/
src/lib/job_manager.cc
@@
-100,6
+100,11
@@
JobManager::scheduler ()
{
boost::mutex::scoped_lock lm (_mutex);
for (list<shared_ptr<Job> >::iterator i = _jobs.begin(); i != _jobs.end(); ++i) {
+
+ if (!(*i)->finished ()) {
+ active_jobs = true;
+ }
+
if ((*i)->running ()) {
/* Something is already happening */
break;
@@
-114,10
+119,6
@@
JobManager::scheduler ()
break;
}
}
-
- if (!(*i)->finished ()) {
- active_jobs = true;
- }
}
}