Sleep when checking connection failed
This commit is contained in:
parent
953a862c9d
commit
9929ab2eb5
1 changed files with 2 additions and 0 deletions
|
@ -375,11 +375,13 @@ class PlexAPI():
|
|||
"Header: %s Error message: %s"
|
||||
% (url, header, e), 0)
|
||||
count += 1
|
||||
xbmc.sleep(1000)
|
||||
continue
|
||||
except requests.exceptions.ReadTimeout:
|
||||
self.logMsg("Server timeout reached for Url %s with header %s"
|
||||
% (url, header), 0)
|
||||
count += 1
|
||||
xbmc.sleep(1000)
|
||||
continue
|
||||
else:
|
||||
result = answer.status_code
|
||||
|
|
Loading…
Reference in a new issue