aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-04-07 22:01:31 -0700
committerZac Medico <zmedico@gentoo.org>2020-04-07 22:29:48 -0700
commit174b624d6a2d863d9779b0c2c4035ff33ba46a90 (patch)
treedd5d096ab4265a9cedd92e31f10ee7f3c90cc27f /lib/_emerge
parentRevert "SpawnProcess: use async_start method (bug 709746)" (diff)
downloadportage-174b624d6a2d863d9779b0c2c4035ff33ba46a90.tar.gz
portage-174b624d6a2d863d9779b0c2c4035ff33ba46a90.tar.bz2
portage-174b624d6a2d863d9779b0c2c4035ff33ba46a90.zip
Revert "ForkExecutor: use async_start method"
This reverts commit 4df7a0a0c16c5ded65ad601d39840797b7704770. Bug: https://bugs.gentoo.org/716636 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/AsynchronousTask.py15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/_emerge/AsynchronousTask.py b/lib/_emerge/AsynchronousTask.py
index c4197d468..962c68547 100644
--- a/lib/_emerge/AsynchronousTask.py
+++ b/lib/_emerge/AsynchronousTask.py
@@ -25,19 +25,8 @@ class AsynchronousTask(SlotObject):
@coroutine
def async_start(self):
- try:
- if self._was_cancelled():
- raise asyncio.CancelledError
- yield self._async_start()
- if self._was_cancelled():
- raise asyncio.CancelledError
- except asyncio.CancelledError:
- self.cancel()
- self._was_cancelled()
- self._async_wait()
- raise
- finally:
- self._start_hook()
+ yield self._async_start()
+ self._start_hook()
@coroutine
def _async_start(self):