From: Zac Medico <zmedico@gentoo.org>
Date: Thu, 17 Jul 2008 06:31:00 +0000 (-0000)
Subject: In SequentialTaskQueue.clear(), remove the exit listener from each task before
X-Git-Tag: v2.2_rc2~69
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc422f02359719c83170865a5b7fc193d88e3d60;p=portage.git

In SequentialTaskQueue.clear(), remove the exit listener from each task before
cancelling it.

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

diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 13df0d8f5..91814bd5a 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -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):