mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
ToC Editor: Fix a regression that caused changes to not be saved on machines where running a worker process takes more than ten seconds. Fixes #1930466 [TOC Editor Not Saving Edits/Changes](https://bugs.launchpad.net/calibre/+bug/1930466)
This commit is contained in:
parent
1f8d39caf2
commit
27babe5ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ def check_for_completions(self):
|
|||
db.new_api.add_format(job['book_id'], job['fmt'], job['path'], run_hooks=False)
|
||||
os.remove(job['path'])
|
||||
else:
|
||||
if monotonic() - job['start_time'] > 10:
|
||||
if monotonic() - job['start_time'] > 120:
|
||||
self.jobs.remove(job)
|
||||
continue
|
||||
if os.path.exists(started_path):
|
||||
|
|
|
|||
Loading…
Reference in a new issue