mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user