mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -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):
|
||||
if self.last_modified() > self.last_update_check:
|
||||
self.backend.reopen()
|
||||
self.new_api.reload_from_db()
|
||||
self.last_update_check = utcnow()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user