From 27babe5ec8e1bed0adc199a65dc557669195736d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 2 Jun 2021 08:42:08 +0530 Subject: [PATCH] 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) --- src/calibre/gui2/actions/toc_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/actions/toc_edit.py b/src/calibre/gui2/actions/toc_edit.py index bbd5719840..6e545f0dab 100644 --- a/src/calibre/gui2/actions/toc_edit.py +++ b/src/calibre/gui2/actions/toc_edit.py @@ -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):