mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Fix potential error due to timeout
This commit is contained in:
parent
0f2f6dbcaf
commit
948015d433
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue