From dad8d588243de44795cb6c2e158608a699d441e7 Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 6 Feb 2021 12:20:52 +0100 Subject: [PATCH] Fix AttributeError: 'App' object has no attribute 'threads' when sync is cancelled --- resources/lib/app/application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/app/application.py b/resources/lib/app/application.py index 79608afd..318276fc 100644 --- a/resources/lib/app/application.py +++ b/resources/lib/app/application.py @@ -19,6 +19,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: @@ -45,8 +47,6 @@ class App(object): self.monitor = None # xbmc.Player() instance self.player = None - # All thread instances - self.threads = [] # Instance of FanartThread() self.fanart_thread = None # Instance of ImageCachingThread()