From: Zac Medico Date: Tue, 1 Jan 2013 11:08:49 +0000 (-0800) Subject: AsynchronousLock: override _async_wait_cb X-Git-Tag: v2.2.0_alpha150~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=83cfc04df383b56592b89f1dc58428c0e8d09925;p=portage.git AsynchronousLock: override _async_wait_cb --- diff --git a/pym/_emerge/AsynchronousLock.py b/pym/_emerge/AsynchronousLock.py index 2de1acdcf..520541432 100644 --- a/pym/_emerge/AsynchronousLock.py +++ b/pym/_emerge/AsynchronousLock.py @@ -119,12 +119,12 @@ class _LockThread(AbstractPollTask): def _run_lock(self): self._lock_obj = lockfile(self.path, wantnewlockfile=True) # Thread-safe callback to EventLoop - self.scheduler.idle_add(self._run_lock_cb) + self._async_wait() - def _run_lock_cb(self): + def _async_wait_cb(self): self._unregister() self.returncode = os.EX_OK - self.wait() + AbstractPollTask._async_wait_cb(self) return False def _cancel(self):