mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
When reloading on dn modification, re-open the connection
This ensures that the content server does not continue to use a deleted metadata.db.
This commit is contained in:
parent
39425a15a3
commit
1a11c09d3c
@ -117,6 +117,7 @@ class LibraryDatabase(object):
|
|||||||
|
|
||||||
def check_if_modified(self):
|
def check_if_modified(self):
|
||||||
if self.last_modified() > self.last_update_check:
|
if self.last_modified() > self.last_update_check:
|
||||||
|
self.backend.reopen()
|
||||||
self.new_api.reload_from_db()
|
self.new_api.reload_from_db()
|
||||||
self.last_update_check = utcnow()
|
self.last_update_check = utcnow()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user