commit:     1c681e0cc783ca241b1f2e1c782fccd8f1aac769
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  1 00:50:37 2020 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Mar  1 00:51:35 2020 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1c681e0c

CompositeTask: call self.cancel() for _start_task CancelledError

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 lib/_emerge/CompositeTask.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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()
 

Reply via email to