List Archive: gentoo-commits
1.1 |
Author: zmedico
Date: 2008-07-05 12:36:40 +0000 (Sat, 05 Jul 2008)
New Revision: 10941
Modified:
main/trunk/pym/_emerge/__init__.py
Log:
Fix CompositeTask.cancel() so that it's safe to call when there is no
running task.
Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py 2008-07-05 12:21:43 UTC (rev 10940)
+++ main/trunk/pym/_emerge/__init__.py 2008-07-05 12:36:40 UTC (rev 10941)
@@ -1523,7 +1523,8 @@
def cancel(self):
self._task_queue.clear()
self.cancelled = True
- self._current_task.cancel()
+ if self._current_task is not None:
+ self._current_task.cancel()
def wait(self):
--
gentoo-commits@g.o mailing list
|
|