This commit is contained in:
Kovid Goyal 2010-09-29 20:54:24 -06:00
parent 1874dfbd96
commit 56fce8862f

View File

@ -101,12 +101,13 @@ class MetadataBackup(Thread): # {{{
prints('Failed to write backup metadata for id:', id_, prints('Failed to write backup metadata for id:', id_,
'again, giving up') 'again, giving up')
continue continue
self.in_limbo = None
def flush(self): def flush(self):
'Used during shutdown to ensure that a dirtied book is not missed' 'Used during shutdown to ensure that a dirtied book is not missed'
if self.in_limbo is not None: if self.in_limbo is not None:
try: try:
self.set_dirtied([self.in_limbo]) self.db.dirtied([self.in_limbo])
except: except:
traceback.print_exc() traceback.print_exc()