mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for regression in 2.3 connecting with Calibre Companion when deleting books caused by the performance improvement in 829447f01fd34dd780a7ee6083cdd53b751e5c40
This commit is contained in:
parent
2002b18de3
commit
6925fd7a23
@ -1272,7 +1272,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
self._debug('processed cache. count=', len(books_on_device))
|
self._debug('processed cache. count=', len(books_on_device))
|
||||||
count_of_cache_items_deleted = 0
|
count_of_cache_items_deleted = 0
|
||||||
if self.client_cache_uses_lpaths:
|
if self.client_cache_uses_lpaths:
|
||||||
for lpath in self.known_metadata.iterkeys():
|
for lpath in tuple(self.known_metadata.iterkeys()):
|
||||||
if lpath not in lpaths_on_device:
|
if lpath not in lpaths_on_device:
|
||||||
try:
|
try:
|
||||||
uuid = self.known_metadata[lpath].get('uuid', None)
|
uuid = self.known_metadata[lpath].get('uuid', None)
|
||||||
@ -1569,7 +1569,6 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
|||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
@synchronous('sync_lock')
|
@synchronous('sync_lock')
|
||||||
def synchronize_with_db(self, db, id_, book):
|
def synchronize_with_db(self, db, id_, book):
|
||||||
from calibre.utils.date import parse_date, is_date_undefined
|
from calibre.utils.date import parse_date, is_date_undefined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user