do the emby tables check flag reset earlier

This commit is contained in:
sfaulds 2017-01-12 09:08:52 +11:00
parent 1f34e043ec
commit 38a5edee63
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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()