Optimize join()
This commit is contained in:
parent
9261a8b143
commit
36d14ffdcf
1 changed files with 1 additions and 3 deletions
|
@ -134,11 +134,9 @@ class FullSync(common.libsync_mixin):
|
||||||
section['section_id'],
|
section['section_id'],
|
||||||
self.plex_type)
|
self.plex_type)
|
||||||
self.queue.put(queue_info)
|
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:
|
if self.plex_type != v.PLEX_TYPE_ARTIST:
|
||||||
self.process_playstate(iterator)
|
self.process_playstate(iterator)
|
||||||
|
self.queue.join()
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
LOG.error('Could not process playstate for section %s', section)
|
LOG.error('Could not process playstate for section %s', section)
|
||||||
successful = False
|
successful = False
|
||||||
|
|
Loading…
Reference in a new issue