From 83cfc04df383b56592b89f1dc58428c0e8d09925 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 1 Jan 2013 03:08:49 -0800 Subject: [PATCH] AsynchronousLock: override _async_wait_cb --- pym/_emerge/AsynchronousLock.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.26.2