mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -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)
|
db.new_api.add_format(job['book_id'], job['fmt'], job['path'], run_hooks=False)
|
||||||
os.remove(job['path'])
|
os.remove(job['path'])
|
||||||
else:
|
else:
|
||||||
if monotonic() - job['start_time'] > 10:
|
if monotonic() - job['start_time'] > 120:
|
||||||
self.jobs.remove(job)
|
self.jobs.remove(job)
|
||||||
continue
|
continue
|
||||||
if os.path.exists(started_path):
|
if os.path.exists(started_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user