Merge pull request #670 from croneter/pr_attributeerror

Fix artwork caching AttributeError: 'ImageCachingThread' object has no attribute 'cancel'
This commit is contained in:
croneter 2019-02-02 13:43:09 +01:00 committed by GitHub
commit 0de47c7b3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -135,7 +135,7 @@ class Sync(backgroundthread.KillableThread):
LOG.info('Not synching Plex artwork - not caching')
return
if self.image_cache_thread and self.image_cache_thread.is_alive():
self.image_cache_thread.cancel()
self.image_cache_thread.abort()
self.image_cache_thread.join()
self.image_cache_thread = artwork.ImageCachingThread()
self.image_cache_thread.start()