svn path=/main/trunk/; revision=10946
def _wait_hook(self):
"""
- Call this method before returning from wait. This hook is
+ Call this method after the task completes, just before returning
+ the returncode from wait() or poll(). This hook is
used to trigger exit listeners when the returncode first
becomes available.
"""
if retval == (0, 0):
return None
self._set_returncode(retval)
+ self._wait_hook()
return self.returncode
def cancel(self):