summaryrefslogtreecommitdiffstats
path: root/pym/portage/util/_async/AsyncScheduler.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/util/_async/AsyncScheduler.py')
-rw-r--r--pym/portage/util/_async/AsyncScheduler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py
index 182e19ee8..9b96c6f36 100644
--- a/pym/portage/util/_async/AsyncScheduler.py
+++ b/pym/portage/util/_async/AsyncScheduler.py
@@ -1,4 +1,4 @@
-# Copyright 2012 Gentoo Foundation
+# Copyright 2012-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
from portage import os
@@ -38,7 +38,7 @@ class AsyncScheduler(AsynchronousTask, PollScheduler):
raise NotImplementedError(self)
def _keep_scheduling(self):
- return self._remaining_tasks and not self._terminated_tasks
+ return self._remaining_tasks and not self._terminated.is_set()
def _running_job_count(self):
return len(self._running_tasks)