AsyncScheduler: use _termination_check
authorZac Medico <zmedico@gentoo.org>
Wed, 3 Oct 2012 17:38:45 +0000 (10:38 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 3 Oct 2012 17:38:45 +0000 (10:38 -0700)
The _terminate_tasks method is always supposed to be called via
_termination_check.

pym/portage/util/_async/AsyncScheduler.py

index 130331ec5cf7c14fb4bfdd92bbaf1558b2d3ac09..a452c0c377996450e79926afe7c27ac880753bec 100644 (file)
@@ -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):