mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-05 12:03:38 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -117,6 +117,7 @@ def last_modified(self):
|
|||
|
||||
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…
Reference in a new issue