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:
Kovid Goyal 2013-07-21 09:12:37 +05:30
parent 39425a15a3
commit 1a11c09d3c

View File

@ -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()