From 56fce8862f220dac65e06620fb5b2f618cd65256 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Sep 2010 20:54:24 -0600 Subject: [PATCH] ... --- src/calibre/library/caches.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/library/caches.py b/src/calibre/library/caches.py index e18f514239..179262dedc 100644 --- a/src/calibre/library/caches.py +++ b/src/calibre/library/caches.py @@ -101,12 +101,13 @@ class MetadataBackup(Thread): # {{{ prints('Failed to write backup metadata for id:', id_, 'again, giving up') continue + self.in_limbo = None def flush(self): 'Used during shutdown to ensure that a dirtied book is not missed' if self.in_limbo is not None: try: - self.set_dirtied([self.in_limbo]) + self.db.dirtied([self.in_limbo]) except: traceback.print_exc()