diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-01-06 13:20:57 +0100 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2009-01-06 13:20:57 +0100 |
| commit | 5b7a1c9dae868020473e9dcb79a5dfa442e019e1 (patch) | |
| tree | 727ab24c54636dad38562896d08e7b5dbdef55c8 /lib | |
| parent | d3f19e4d668d9022df6bdb935208cda663ee22d2 (diff) | |
| download | enigma2-5b7a1c9dae868020473e9dcb79a5dfa442e019e1.tar.gz enigma2-5b7a1c9dae868020473e9dcb79a5dfa442e019e1.zip | |
only kill actual containers on aborting tasks
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/python/Components/Task.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/Components/Task.py b/lib/python/Components/Task.py index 04e5c938..df94f8a6 100644 --- a/lib/python/Components/Task.py +++ b/lib/python/Components/Task.py @@ -131,6 +131,7 @@ class Task(object): self.task_progress_changed = None self.output_line = "" job.addTask(self) + self.container = None def setCommandline(self, cmd, args): self.cmd = cmd @@ -211,7 +212,8 @@ class Task(object): self.finish() def abort(self): - self.container.kill() + if self.container: + self.container.kill() self.finish(aborted = True) def finish(self, aborted = False): |
