Merge pull request #1325 from croneter/fix-attributeerror

Fix AttributeError: 'App' object has no attribute 'threads' when sync is cancelled
This commit is contained in:
croneter 2021-02-07 13:11:19 +01:00 committed by GitHub
commit 6cea9464c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,8 @@ class App(object):
def __init__(self, entrypoint=False):
self.fetch_pms_item_number = None
self.force_reload_skin = None
# All thread instances
self.threads = []
if entrypoint:
self.load_entrypoint()
else:
@ -44,8 +46,6 @@ class App(object):
self.monitor = None
# xbmc.Player() instance
self.player = None
# All thread instances
self.threads = []
# Instance of MetadataThread()
self.metadata_thread = None
# Instance of ImageCachingThread()