From: Fraxinas Date: Wed, 23 Dec 2009 15:42:01 +0000 (+0100) Subject: DVDBurn: set callback in WaitForResidentTasks to prevent possible crash on user abort X-Git-Tag: 2.7.0~8^2~1 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/1c928e7f3c16a040e092c8a83e83ab3f75fb5339 DVDBurn: set callback in WaitForResidentTasks to prevent possible crash on user abort --- diff --git a/lib/python/Plugins/Extensions/DVDBurn/Process.py b/lib/python/Plugins/Extensions/DVDBurn/Process.py index 44075d64..642a898d 100644 --- a/lib/python/Plugins/Extensions/DVDBurn/Process.py +++ b/lib/python/Plugins/Extensions/DVDBurn/Process.py @@ -264,6 +264,7 @@ class WaitForResidentTasks(Task): def run(self, callback): print "waiting for %d resident task(s) %s to finish..." % (len(self.job.resident_tasks),str(self.job.resident_tasks)) + self.callback = callback if self.job.resident_tasks == 0: callback(self, [])