From 3c9aa10587336e0c461b67da26224cb6cb3010ee Mon Sep 17 00:00:00 2001 From: Shaun Date: Fri, 20 Nov 2015 13:52:06 +1100 Subject: [PATCH] add messaging to sync thread exit --- resources/lib/LibrarySync.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 2cfd6e39..47e805ff 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -1058,8 +1058,16 @@ class LibrarySync(threading.Thread): return True else: return False - + 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 kodiProfile = xbmc.translatePath("special://profile")