Skip to content

Commit

Permalink
AsyncScheduler: cancel task after _task_coroutine 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 1c681e0 commit 27a6ee3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/portage/util/_async/AsyncScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def _task_coroutine_done(self, task, future):
try:
future.result()
except asyncio.CancelledError:
task.cancel()
self.cancel()
self._task_exit(task)

Expand Down

0 comments on commit 27a6ee3

Please sign in to comment.