aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-29 16:50:37 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-29 16:51:35 -0800
commit1c681e0cc783ca241b1f2e1c782fccd8f1aac769 (patch)
tree979db98337fd4a4c7170280003cd2632240f7347 /lib
parentSpawnProcess: cancel pipe_logger after async_start CancelledError (diff)
downloadportage-1c681e0cc783ca241b1f2e1c782fccd8f1aac769.tar.gz
portage-1c681e0cc783ca241b1f2e1c782fccd8f1aac769.tar.bz2
portage-1c681e0cc783ca241b1f2e1c782fccd8f1aac769.zip
CompositeTask: call self.cancel() for _start_task CancelledError
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/_emerge/CompositeTask.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_emerge/CompositeTask.py b/lib/_emerge/CompositeTask.py
index ce7136c3d..319f9f995 100644
--- a/lib/_emerge/CompositeTask.py
+++ b/lib/_emerge/CompositeTask.py
@@ -118,7 +118,7 @@ class CompositeTask(AsynchronousTask):
try:
future.result()
except asyncio.CancelledError:
- self.cancelled = True
+ self.cancel()
self._was_cancelled()
self._async_wait()