From 3453c38128c8af3e0178dce7d2d64d7cfb899141 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Oct 2012 11:39:11 -0700 Subject: AsyncScheduler: implement _poll --- pym/portage/util/_async/AsyncScheduler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index a452c0c37..3fb079c47 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -25,6 +25,11 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): self._term_check_id = None self._loadavg_check_id = None + def _poll(self): + if not (self._is_work_scheduled() or self._keep_scheduling()): + self.wait() + return self.returncode + def _cancel(self): self._terminated.set() self._termination_check() -- cgit v1.2.3-1-g7c22