1 |
commit: 1c681e0cc783ca241b1f2e1c782fccd8f1aac769 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 1 00:50:37 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 1 00:51:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1c681e0c |
7 |
|
8 |
CompositeTask: call self.cancel() for _start_task CancelledError |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
lib/_emerge/CompositeTask.py | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/lib/_emerge/CompositeTask.py b/lib/_emerge/CompositeTask.py |
16 |
index ce7136c3d..319f9f995 100644 |
17 |
--- a/lib/_emerge/CompositeTask.py |
18 |
+++ b/lib/_emerge/CompositeTask.py |
19 |
@@ -118,7 +118,7 @@ class CompositeTask(AsynchronousTask): |
20 |
try: |
21 |
future.result() |
22 |
except asyncio.CancelledError: |
23 |
- self.cancelled = True |
24 |
+ self.cancel() |
25 |
self._was_cancelled() |
26 |
self._async_wait() |