fix media not working after full sync

This commit is contained in:
Damien Elmes 2020-06-24 09:52:02 +10:00
parent ef55c0a2ee
commit d99ea0c7a0

View File

@ -271,6 +271,8 @@ class Collection:
media_db_path=media_db, media_db_path=media_db,
log_path=log_path, log_path=log_path,
) )
else:
self.media.connect()
self.db = DBProxy(weakref.proxy(self.backend)) self.db = DBProxy(weakref.proxy(self.backend))
self.db.begin() self.db.begin()