From c06e8216f9b8a5fc59757422539a199aa274654a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 29 Jul 2008 20:24:43 +0000 Subject: [PATCH] Avoid triggering a tight loop AssertionError in Scheduler._main_loop(). svn path=/main/trunk/; revision=11271 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 11380c026..c280b4a1e 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -9639,7 +9639,8 @@ class Scheduler(PollScheduler): merge_queue = self._task_queues.merge while self._schedule(): - self._poll_loop() + if self._poll_event_handlers: + self._poll_loop() while True: self._schedule() -- 2.26.2