From e35a7bd6fb5d0e59798342a1cf6641b52f5e15d1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Aug 2013 15:06:29 +0530 Subject: [PATCH] ... --- src/calibre/db/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/db/cache.py b/src/calibre/db/cache.py index 11005ecf0b..830447c22e 100644 --- a/src/calibre/db/cache.py +++ b/src/calibre/db/cache.py @@ -1201,7 +1201,9 @@ class Cache(object): @api def add_format(self, book_id, fmt, stream_or_path, replace=True, run_hooks=True, dbapi=None): if run_hooks: - # Run import plugins + # Run import plugins, the write lock is not held to cater for + # broken plugins that might spin the event loop by popping up a + # message in the GUI during the processing. npath = run_import_plugins(stream_or_path, fmt) fmt = os.path.splitext(npath)[-1].lower().replace('.', '').upper() stream_or_path = lopen(npath, 'rb')