Prevent errors if changing setting

This commit is contained in:
tomkat83 2016-09-11 10:20:29 +02:00
parent bcb3b49507
commit 3e261a75e2

View file

@ -370,8 +370,8 @@ class LibrarySync(Thread):
self.queue = queue
self.itemsToProcess = []
self.sessionKeys = []
if settings('FanartTV') == 'true':
self.fanartqueue = Queue.Queue()
if settings('FanartTV') == 'true':
self.fanartthread = ProcessFanartThread(self.fanartqueue)
# How long should we wait at least to process new/changed PMS items?
self.saftyMargin = int(settings('saftyMargin'))