Fix backups not working in new backend

This commit is contained in:
Kovid Goyal 2013-07-21 11:55:31 +05:30
parent b5bc636178
commit 4b1a61d7ce

View File

@ -26,7 +26,7 @@ class MetadataBackup(Thread):
def __init__(self, db, interval=2, scheduling_interval=0.1):
Thread.__init__(self)
self.daemon = True
self._db = weakref.ref(db)
self._db = weakref.ref(db.new_api)
self.stop_running = Event()
self.interval = interval
self.scheduling_interval = scheduling_interval