mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Close the kodi cursor earlier
In case music doesn't complete correctly.
This commit is contained in:
parent
ad6a4b2dd5
commit
60f68610f4
1 changed files with 3 additions and 1 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue