From 9929ab2eb5ba4c8da9cd6f035ac9279ae8c80967 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 5 Apr 2016 17:03:34 +0200 Subject: [PATCH] Sleep when checking connection failed --- resources/lib/PlexAPI.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index e6c582b2..3c0543ca 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -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