projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85c316
)
Fix CompositeTask.cancel() so that it's safe to call when there is no
author
Zac Medico
<zmedico@gentoo.org>
Sat, 5 Jul 2008 12:36:40 +0000
(12:36 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 5 Jul 2008 12:36:40 +0000
(12:36 -0000)
running task.
svn path=/main/trunk/; revision=10941
pym/_emerge/__init__.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/__init__.py
b/pym/_emerge/__init__.py
index 44f7e53e063d00cdec65553297c5159fc720036a..3ba5d01fc257dc581f766e9660a415ce9a7c08cf 100644
(file)
--- a/
pym/_emerge/__init__.py
+++ b/
pym/_emerge/__init__.py
@@
-1523,7
+1523,8
@@
class CompositeTask(AsynchronousTask):
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):