summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/util/_async/AsyncScheduler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py
index 3fb079c47..f6285b701 100644
--- a/pym/portage/util/_async/AsyncScheduler.py
+++ b/pym/portage/util/_async/AsyncScheduler.py
@@ -59,6 +59,9 @@ class AsyncScheduler(AsynchronousTask, PollScheduler):
task.addExitListener(self._task_exit)
task.start()
+ # Triggers cleanup and exit listeners if there's nothing left to do.
+ self.poll()
+
def _task_exit(self, task):
self._running_tasks.discard(task)
if task.returncode != os.EX_OK: