diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 33383ecc..6d4fe5b6 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -645,10 +645,6 @@ class LibrarySync(threading.Thread): log.warn("---===### Starting LibrarySync ###===---") - # reset the internal emby tables check status - # we need to check at least once per run or on switching profiles - window('emby_db_checked', value="false") - while not self.monitor.abortRequested(): # In the event the server goes offline diff --git a/resources/lib/service_entry.py b/resources/lib/service_entry.py index c5ef237d..8ef441d1 100644 --- a/resources/lib/service_entry.py +++ b/resources/lib/service_entry.py @@ -85,6 +85,11 @@ class Service(object): def service_entry_point(self): + + # reset the internal emby tables check status + # we need to check at least once per run or on switching profiles + window('emby_db_checked', value="false") + # Important: Threads depending on abortRequest will not trigger # if profile switch happens more than once. self.monitor = kodimonitor.KodiMonitor()