Skip to content

Commit

Permalink
Fix for regression in 2.3 connecting with Calibre Companion caused by…
Browse files Browse the repository at this point in the history
… the performance improvement in 829447f
  • Loading branch information
kovidgoyal committed Sep 12, 2014
1 parent 2002b18 commit 01bdee0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/calibre/devices/smart_device_app/driver.py
Expand Up @@ -1272,7 +1272,7 @@ def books(self, oncard=None, end_session=True):
self._debug('processed cache. count=', len(books_on_device))
count_of_cache_items_deleted = 0
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:
try:
uuid = self.known_metadata[lpath].get('uuid', None)
Expand Down Expand Up @@ -1569,7 +1569,6 @@ def _check_if_format_send_needed(self, db, id_, book):
traceback.print_exc()
return None


@synchronous('sync_lock')
def synchronize_with_db(self, db, id_, book):
from calibre.utils.date import parse_date, is_date_undefined
Expand Down

0 comments on commit 01bdee0

Please sign in to comment.