In SequentialTaskQueue.clear(), remove the exit listener from each task before
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Jul 2008 06:31:00 +0000 (06:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Jul 2008 06:31:00 +0000 (06:31 -0000)
cancelling it.

svn path=/main/trunk/; revision=11095

pym/_emerge/__init__.py

index 13df0d8f5dd690cdc3d1c83d1e0c170617522aec..91814bd5a260d9a33ca32e0815c66d06ce40ab0a 100644 (file)
@@ -7989,6 +7989,7 @@ class SequentialTaskQueue(SlotObject):
                running_tasks = self.running_tasks
                while running_tasks:
                        task = running_tasks.pop()
+                       task.removeExitListener(self._task_exit)
                        task.cancel()
 
        def __nonzero__(self):