aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_emerge/CompositeTask.py')
-rw-r--r--lib/_emerge/CompositeTask.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/_emerge/CompositeTask.py b/lib/_emerge/CompositeTask.py
index 1d199d19b..2ad1d783d 100644
--- a/lib/_emerge/CompositeTask.py
+++ b/lib/_emerge/CompositeTask.py
@@ -20,6 +20,10 @@ class CompositeTask(AsynchronousTask):
self._async_wait()
else:
self._current_task.cancel()
+ elif self.returncode is None:
+ # Assume that the task has not started yet.
+ self._was_cancelled()
+ self._async_wait()
def _poll(self):
"""