aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-02-29 17:14:32 -0800
committerZac Medico <zmedico@gentoo.org>2020-02-29 17:15:56 -0800
commit27a6ee3d09ff79b6addb2696a10fcc3f46e5ca91 (patch)
tree69573c364641c592018a7d315533ff72df6e141e
parentCompositeTask: call self.cancel() for _start_task CancelledError (diff)
downloadportage-27a6ee3d09ff79b6addb2696a10fcc3f46e5ca91.tar.gz
portage-27a6ee3d09ff79b6addb2696a10fcc3f46e5ca91.tar.bz2
portage-27a6ee3d09ff79b6addb2696a10fcc3f46e5ca91.zip
AsyncScheduler: cancel task after _task_coroutine CancelledError
Signed-off-by: Zac Medico <zmedico@gentoo.org>
-rw-r--r--lib/portage/util/_async/AsyncScheduler.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/portage/util/_async/AsyncScheduler.py b/lib/portage/util/_async/AsyncScheduler.py
index b9070061a..c31bda5f2 100644
--- a/lib/portage/util/_async/AsyncScheduler.py
+++ b/lib/portage/util/_async/AsyncScheduler.py
@@ -86,6 +86,7 @@ class AsyncScheduler(AsynchronousTask, PollScheduler):
try:
future.result()
except asyncio.CancelledError:
+ task.cancel()
self.cancel()
self._task_exit(task)