From 359cf128a70f7153cb800d7a22c519ec7838f02b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 3 Oct 2012 10:38:45 -0700 Subject: AsyncScheduler: use _termination_check The _terminate_tasks method is always supposed to be called via _termination_check. --- pym/portage/util/_async/AsyncScheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3-1-g7c22