diff options
Diffstat (limited to 'pym/_emerge')
-rw-r--r-- | pym/_emerge/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d7cd8fa11..f0a0a687c 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1579,11 +1579,14 @@ class CompositeTask(AsynchronousTask): def _wait(self): + prev = None while True: task = self._current_task - if task is None: + if task is None or task is prev: + # don't wait for the same task more than once break task.wait() + prev = task return self.returncode |