Revert "Sleep 5s after declaring connection dead"

This reverts commit d65d9f0aba.
This commit is contained in:
tomkat83 2016-11-12 17:50:45 +01:00
parent d65d9f0aba
commit c779491499

View file

@ -143,14 +143,14 @@ class WebSocket(threading.Thread):
"declaring the connection dead") "declaring the connection dead")
window('plex_online', value='false') window('plex_online', value='false')
counter = 0 counter = 0
xbmc.sleep(5000) xbmc.sleep(1000)
except websocket.WebSocketTimeoutException: except websocket.WebSocketTimeoutException:
log.info("timeout while connecting, trying again") log.info("timeout while connecting, trying again")
self.ws = None self.ws = None
xbmc.sleep(1000) xbmc.sleep(1000)
except Exception as e: except Exception as e:
log.error("Unknown exception encountered in connecting: %s" log.error("Unknown exception encountered in connecting: %s"
% e) % e)
self.ws = None self.ws = None
xbmc.sleep(1000) xbmc.sleep(1000)
else: else: