mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
...
This commit is contained in:
parent
1874dfbd96
commit
56fce8862f
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user