DVDBurn: set callback in WaitForResidentTasks to prevent possible crash on user abort
[enigma2.git] / lib / python / Plugins / Extensions / DVDBurn / Process.py
index 44075d64035a207584fe9ac2f7ccd2cde464578f..642a898d2d72523a960225cfaf1d4d2db11db887 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, [])