diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 28f99b6e..ea6b6f17 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -126,7 +126,6 @@ def double_urldecode(text): return unquote(unquote(text)) -@ThreadMethodsAdditionalSuspend('suspend_LibraryThread') @ThreadMethodsAdditionalStop('plex_shouldStop') @ThreadMethods class Image_Cache_Thread(Thread): @@ -145,6 +144,12 @@ class Image_Cache_Thread(Thread): self.queue = queue Thread.__init__(self) + def threadSuspended(self): + # Overwrite method to add TWO additional suspends + return (self._threadSuspended or + window('suspend_LibraryThread') or + window('plex_dbScan')) + def run(self): threadStopped = self.threadStopped threadSuspended = self.threadSuspended