From a3100be184ba1cac2f672f0a1cadcf01690c6d3f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 30 Dec 2012 17:01:59 -0800 Subject: AsynchronousTask: add _async_wait method For cases where _start returns synchronously, this method is a convenient way to trigger an asynchronous call to self.wait() (in order to notify exit listeners), avoiding excessive event loop recursion (or stack overflow) that synchronous calling of exit listeners can cause. --- pym/_emerge/EbuildBuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pym/_emerge/EbuildBuild.py') diff --git a/pym/_emerge/EbuildBuild.py b/pym/_emerge/EbuildBuild.py index cec63d992..599875a32 100644 --- a/pym/_emerge/EbuildBuild.py +++ b/pym/_emerge/EbuildBuild.py @@ -35,7 +35,7 @@ class EbuildBuild(CompositeTask): if rval != os.EX_OK: self.returncode = rval self._current_task = None - self.wait() + self._async_wait() return root_config = pkg.root_config @@ -60,7 +60,7 @@ class EbuildBuild(CompositeTask): if not self._check_manifest(): self.returncode = 1 self._current_task = None - self.wait() + self._async_wait() return prefetcher = self.prefetcher -- cgit v1.2.3-1-g7c22