From 1a11c09d3cc72c41a10bdc2877be44a110cdf308 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 21 Jul 2013 09:12:37 +0530 Subject: [PATCH] When reloading on dn modification, re-open the connection This ensures that the content server does not continue to use a deleted metadata.db. --- src/calibre/db/legacy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/db/legacy.py b/src/calibre/db/legacy.py index 8cf6007479..13edf47999 100644 --- a/src/calibre/db/legacy.py +++ b/src/calibre/db/legacy.py @@ -117,6 +117,7 @@ class LibraryDatabase(object): def check_if_modified(self): if self.last_modified() > self.last_update_check: + self.backend.reopen() self.new_api.reload_from_db() self.last_update_check = utcnow()