Fix broken code in AsynchronousTask.poll().
authorZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 03:12:52 +0000 (03:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 7 Jul 2008 03:12:52 +0000 (03:12 -0000)
svn path=/main/trunk/; revision=10965

pym/_emerge/__init__.py

index f497bd7d70740256ce0c58db721b25e4c1a3a202..93684885e8a83eca0f76fadf5a5a82a29fe4024b 100644 (file)
@@ -1473,10 +1473,10 @@ class AsynchronousTask(SlotObject):
                return self.returncode is None
 
        def poll(self):
-               return self._poll
+               self._wait_hook()
+               return self._poll()
 
        def _poll(self):
-               self._wait_hook()
                return self.returncode
 
        def wait(self):