Close the kodi cursor earlier

In case music doesn't complete correctly.
This commit is contained in:
angelblue05 2016-01-18 17:47:12 -06:00
parent ad6a4b2dd5
commit 60f68610f4

View file

@ -251,6 +251,9 @@ class LibrarySync(threading.Thread):
self.logMsg( self.logMsg(
"SyncDatabase (finished %s in: %s)" "SyncDatabase (finished %s in: %s)"
% (itemtype, str(elapsedTime).split('.')[0]), 1) % (itemtype, str(elapsedTime).split('.')[0]), 1)
else:
# Close the Kodi cursor
kodicursor.close()
# sync music # sync music
if music_enabled: if music_enabled:
@ -282,7 +285,6 @@ class LibrarySync(threading.Thread):
pDialog.close() pDialog.close()
embycursor.close() embycursor.close()
kodicursor.close()
utils.settings('SyncInstallRunDone', value="true") utils.settings('SyncInstallRunDone', value="true")
utils.settings("dbCreatedWithVersion", self.clientInfo.getVersion()) utils.settings("dbCreatedWithVersion", self.clientInfo.getVersion())