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
1 changed files with 3 additions and 1 deletions

View File

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