From: Zac Medico Date: Wed, 3 Oct 2012 17:38:45 +0000 (-0700) Subject: AsyncScheduler: use _termination_check X-Git-Tag: v2.2.0_alpha135~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=359cf128a70f7153cb800d7a22c519ec7838f02b;p=portage.git AsyncScheduler: use _termination_check The _terminate_tasks method is always supposed to be called via _termination_check. --- diff --git a/pym/portage/util/_async/AsyncScheduler.py b/pym/portage/util/_async/AsyncScheduler.py index 130331ec5..a452c0c37 100644 --- a/pym/portage/util/_async/AsyncScheduler.py +++ b/pym/portage/util/_async/AsyncScheduler.py @@ -27,7 +27,7 @@ class AsyncScheduler(AsynchronousTask, PollScheduler): def _cancel(self): self._terminated.set() - self._terminate_tasks() + self._termination_check() def _terminate_tasks(self): for task in list(self._running_tasks):