From: Zac Medico Date: Tue, 17 May 2011 21:32:33 +0000 (-0700) Subject: AsynchronousTask: tweak poll() logic X-Git-Tag: v2.1.9.50~85 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b74ea509d291740a0204096f2d1298014a98b500;p=portage.git AsynchronousTask: tweak poll() logic --- 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