~stub/ubuntu/precise/calibre/devel

« back to all changes in this revision

Viewing changes to src/calibre/utils/ipc/server.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-04-12 11:29:25 UTC
  • mfrom: (42.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110412112925-c7171kt2bb5rmft4
Tags: 0.7.50+dfsg-2
* debian/control: Build with libpodofo-dev to enable PDF metadata.
  (Closes: #619632)
* debian/control: Add libboost1.42-dev build dependency. Apparently it is
  needed in some setups. (Closes: #619807)
* debian/rules: Call dh_sip to generate a proper sip API dependency, to
  prevent crashes like #616372 for partial upgrades.
* debian/control: Bump python-qt4 dependency to >= 4.8.3-2, which reportedly
  fixes crashes on startup. (Closes: #619701, #620125)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        self.killed = False
35
35
        self.log_path = worker.log_path
36
36
        self.rfile = rfile
 
37
        self.close_log_file = getattr(worker, 'close_log_file', None)
37
38
 
38
39
    def start_job(self, job):
39
40
        notification = PARALLEL_FUNCS[job.name][-1] is not None
185
186
 
186
187
            # Remove finished jobs
187
188
            for worker in [w for w in self.workers if not w.is_alive]:
 
189
                try:
 
190
                    worker.close_log_file()
 
191
                except:
 
192
                    pass
188
193
                self.workers.remove(worker)
189
194
                job = worker.job
190
195
                if worker.returncode != 0: