From: Zac Medico Date: Tue, 29 Jul 2008 20:24:43 +0000 (-0000) Subject: Avoid triggering a tight loop AssertionError in Scheduler._main_loop(). X-Git-Tag: v2.2_rc5~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c06e8216f9b8a5fc59757422539a199aa274654a;p=portage.git Avoid triggering a tight loop AssertionError in Scheduler._main_loop(). svn path=/main/trunk/; revision=11271 --- 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()