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:
Kovid Goyal 2021-06-02 08:42:08 +05:30
parent 1f8d39caf2
commit 27babe5ec8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -171,7 +171,7 @@ class ToCEditAction(InterfaceAction):
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):