aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-08-17 20:52:48 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 23:07:40 +0200
commit60e2dcb19baa37753d189fccabeae9b3a5e037fb (patch)
tree9d8de543ba2c85b75535e23de0c8809434d308b2 /lib/python/Components
parent15a99c0b5ac80d52889874af65f9887aabca11b4 (diff)
downloadenigma2-60e2dcb19baa37753d189fccabeae9b3a5e037fb.tar.gz
enigma2-60e2dcb19baa37753d189fccabeae9b3a5e037fb.zip
JobView/HTTPProgressDownloader/NFIFlash correctly handle cancelling downloads
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Task.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/python/Components/Task.py b/lib/python/Components/Task.py
index 2e4e757d..3a755405 100644
--- a/lib/python/Components/Task.py
+++ b/lib/python/Components/Task.py
@@ -64,11 +64,10 @@ class Job(object):
def runNext(self):
if self.current_task == len(self.tasks):
if len(self.resident_tasks) == 0:
- cb = self.callback
- self.callback = None
self.status = self.FINISHED
self.state_changed()
- cb(self, None, [])
+ self.callback(self, None, [])
+ self.callback = None
else:
print "still waiting for %d resident task(s) %s to finish" % (len(self.resident_tasks), str(self.resident_tasks))
else: