From: Zac Medico Date: Tue, 17 May 2011 21:32:33 +0000 (-0700) Subject: AsynchronousTask: tweak poll() logic X-Git-Tag: v2.2.0_alpha34~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=927966f77a5a9b94462e9a0c23be4e7b56207f58;p=portage.git AsynchronousTask: tweak poll() logic --- diff --git a/pym/_emerge/AsynchronousTask.py b/pym/_emerge/AsynchronousTask.py index cac1d5594..36522ca4c 100644 --- a/pym/_emerge/AsynchronousTask.py +++ b/pym/_emerge/AsynchronousTask.py @@ -31,10 +31,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