Skip to content

Commit

Permalink
CompositeTask: call self.cancel() for _start_task CancelledError
Browse files Browse the repository at this point in the history
Signed-off-by: Zac Medico <zmedico@gentoo.org>
  • Loading branch information
zmedico committed Mar 1, 2020
1 parent d331f03 commit 1c681e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_emerge/CompositeTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _current_task_start_cb(self, future):
try:
future.result()
except asyncio.CancelledError:
self.cancelled = True
self.cancel()
self._was_cancelled()
self._async_wait()

Expand Down

0 comments on commit 1c681e0

Please sign in to comment.