diff options
-rw-r--r-- | pym/_emerge/Scheduler.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/Scheduler.py b/pym/_emerge/Scheduler.py index 33e3379fb..a6662a1d0 100644 --- a/pym/_emerge/Scheduler.py +++ b/pym/_emerge/Scheduler.py @@ -325,6 +325,11 @@ class Scheduler(PollScheduler): if timeout is None: while True: + if not self._poll_event_handlers: + self._schedule() + if not self._poll_event_handlers: + raise StopIteration( + "timeout is None and there are no poll() event handlers") previous_count = len(self._poll_event_queue) PollScheduler._poll(self, timeout=self._max_display_latency) self._status_display.display() |