DVDBurn: set callback in WaitForResidentTasks to prevent possible crash on user abort
authorFraxinas <andreas.frisch@multimedia-labs.de>
Wed, 23 Dec 2009 15:42:01 +0000 (16:42 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Wed, 23 Dec 2009 15:42:01 +0000 (16:42 +0100)
lib/python/Plugins/Extensions/DVDBurn/Process.py

index 44075d6..642a898 100644 (file)
@@ -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, [])