Fix plexWatch db importer.

Always return None on exception in http handler.
Increase websocket retry counts.
This commit is contained in:
Tim 2015-09-27 20:48:10 +02:00
parent 16b20976b6
commit 6e2fa9a3b4
3 changed files with 11 additions and 9 deletions

View file

@ -50,7 +50,7 @@ def run():
reconnects = 0
# Try an open the websocket connection - if it fails after 5 retries fallback to polling
while not ws_connected and reconnects < 5:
while not ws_connected and reconnects < 15:
try:
logger.info(u'PlexPy WebSocket :: Opening websocket, connection attempt %s.' % str(reconnects + 1))
ws = create_connection(uri)