From 117eeee2de26723a90ff072b7c795b1b0766898b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Oct 2012 03:18:46 -0700 Subject: [PATCH] AsyncScheduler: source_remove in _wait --- pym/portage/util/_async/AsyncScheduler.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index cae45fd90..130331ec5 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -80,6 +80,14 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): while self._is_work_scheduled(): self.sched_iface.iteration() + if self._term_check_id is not None: + self.sched_iface.source_remove(self._term_check_id) + self._term_check_id = None + + if self._loadavg_check_id is not None: + self.sched_iface.source_remove(self._loadavg_check_id) + self._loadavg_check_id = None + if self._error_count > 0: self.returncode = 1 else: -- 2.26.2