add messaging to sync thread exit

This commit is contained in:
Shaun 2015-11-20 13:52:06 +11:00
parent faa376a520
commit 3c9aa10587

View file

@ -1058,8 +1058,16 @@ class LibrarySync(threading.Thread):
return True return True
else: else:
return False return False
def run(self): def run(self):
try:
self.run_internal()
except Exception as e:
xbmcgui.Dialog().ok("Emby for Kodi", "Library sync thread has exited!", "You should restart Kodi now.", "Please report this on the forum.")
raise
def run_internal(self):
startupComplete = False startupComplete = False
kodiProfile = xbmc.translatePath("special://profile") kodiProfile = xbmc.translatePath("special://profile")