From b74ea509d291740a0204096f2d1298014a98b500 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 17 May 2011 14:32:33 -0700 Subject: AsynchronousTask: tweak poll() logic --- pym/_emerge/AsynchronousTask.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/AsynchronousTask.py b/pym/_emerge/AsynchronousTask.py index bd722912b..057063c12 100644 --- a/pym/_emerge/AsynchronousTask.py +++ b/pym/_emerge/AsynchronousTask.py @@ -29,10 +29,11 @@ class AsynchronousTask(SlotObject): return self.returncode is None def poll(self): - self._wait_hook() if self.returncode is not None: return self.returncode - return self._poll() + self._poll() + self._wait_hook() + return self.returncode def _poll(self): return self.returncode -- cgit v1.2.3-1-g7c22