Wait max. for 5s when choosing new PMS
This commit is contained in:
parent
55cbf5824d
commit
ba8c80f61d
1 changed files with 2 additions and 2 deletions
|
@ -87,10 +87,10 @@ def chooseServer():
|
||||||
sound=False)
|
sound=False)
|
||||||
# Pause library sync thread - user needs to be auth in order to sync
|
# Pause library sync thread - user needs to be auth in order to sync
|
||||||
utils.window('suspend_LibraryThread', value='true')
|
utils.window('suspend_LibraryThread', value='true')
|
||||||
# Wait max for 25 seconds for all lib scans to finish
|
# Wait max for 5 seconds for all lib scans to shutdown
|
||||||
counter = 0
|
counter = 0
|
||||||
while utils.window('emby_dbScan') == 'true':
|
while utils.window('emby_dbScan') == 'true':
|
||||||
if counter > 500:
|
if counter > 100:
|
||||||
# Failed to reset PMS and plex.tv connects. Try to restart Kodi.
|
# Failed to reset PMS and plex.tv connects. Try to restart Kodi.
|
||||||
dialog.ok(addonName,
|
dialog.ok(addonName,
|
||||||
string(39208))
|
string(39208))
|
||||||
|
|
Loading…
Reference in a new issue