1 |
commit: 27a6ee3d09ff79b6addb2696a10fcc3f46e5ca91 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 01:14:32 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 01:15:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=27a6ee3d |
7 |
|
8 |
AsyncScheduler: cancel task after _task_coroutine CancelledError |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
lib/portage/util/_async/AsyncScheduler.py | 1 + |
13 |
1 file changed, 1 insertion(+) |
14 |
|
15 |
diff --git a/lib/portage/util/_async/AsyncScheduler.py b/lib/portage/util/_async/AsyncScheduler.py |
16 |
index b9070061a..c31bda5f2 100644 |
17 |
--- a/lib/portage/util/_async/AsyncScheduler.py |
18 |
+++ b/lib/portage/util/_async/AsyncScheduler.py |
19 |
@@ -86,6 +86,7 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): |
20 |
try: |
21 |
future.result() |
22 |
except asyncio.CancelledError: |
23 |
+ task.cancel() |
24 |
self.cancel() |
25 |
self._task_exit(task) |