From ba8c80f61d81cafb1e7fdcb57d4cb1f6ae3cf391 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 8 Apr 2016 09:29:48 +0200 Subject: [PATCH] Wait max. for 5s when choosing new PMS --- resources/lib/entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 7fac1584..cc2b8aea 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -87,10 +87,10 @@ def chooseServer(): sound=False) # Pause library sync thread - user needs to be auth in order to sync 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 while utils.window('emby_dbScan') == 'true': - if counter > 500: + if counter > 100: # Failed to reset PMS and plex.tv connects. Try to restart Kodi. dialog.ok(addonName, string(39208))