Fix potential error due to timeout

This commit is contained in:
angelblue05 2016-03-06 17:21:29 -06:00
parent 0f2f6dbcaf
commit 948015d433
1 changed files with 3 additions and 3 deletions

View File

@ -273,14 +273,14 @@ class Read_EmbyServer():
retry = 0 retry = 0
while utils.window('emby_online') != "true": while utils.window('emby_online') != "true":
# Wait server to come back online # Wait server to come back online
if retry == 3: if retry == 5:
log("Unable to reconnect to server. Abort process.", 1) log("Unable to reconnect to server. Abort process.", 1)
return return items
retry += 1 retry += 1
if xbmc.Monitor().waitForAbort(1): if xbmc.Monitor().waitForAbort(1):
# Abort was requested while waiting. # Abort was requested while waiting.
return return items
else: else:
# Request succeeded # Request succeeded
index += jump index += jump