From 927966f77a5a9b94462e9a0c23be4e7b56207f58 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 17 May 2011 14:32:33 -0700 Subject: [PATCH] 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 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 -- 2.26.2