From 36d14ffdcf8f8426187c5d22b56c6f894cc6d763 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 26 Nov 2018 19:47:41 +0100 Subject: [PATCH] Optimize join() --- resources/lib/library_sync/full_sync.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/lib/library_sync/full_sync.py b/resources/lib/library_sync/full_sync.py index 7aabcfc2..94683476 100644 --- a/resources/lib/library_sync/full_sync.py +++ b/resources/lib/library_sync/full_sync.py @@ -134,11 +134,9 @@ class FullSync(common.libsync_mixin): section['section_id'], self.plex_type) self.queue.put(queue_info) - # Ensure that the DB connection is closed to commit the - # changes above - avoids "Item not yet synced" error - self.queue.join() if self.plex_type != v.PLEX_TYPE_ARTIST: self.process_playstate(iterator) + self.queue.join() except RuntimeError: LOG.error('Could not process playstate for section %s', section) successful = False