diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-08-17 20:52:48 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-08-17 20:52:48 +0200 |
| commit | 892a18f6926fa4711d17a2e0442b293467e8963c (patch) | |
| tree | c96a496dddc1a539801192df054affff02af052f /lib/python/Components | |
| parent | be0859d12ff4d1f68407d1b3b0423ecaf2c693ac (diff) | |
| download | enigma2-892a18f6926fa4711d17a2e0442b293467e8963c.tar.gz enigma2-892a18f6926fa4711d17a2e0442b293467e8963c.zip | |
JobView/HTTPProgressDownloader/NFIFlash correctly handle cancelling downloads
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Task.py | 5 |
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: |
