Initialize scheduler to reconnect websocket when failed on startup

This commit is contained in:
JonnyWong16
2017-08-13 09:44:15 -07:00
parent 21309ba280
commit a0799e8197
4 changed files with 6 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ def run():
# successfully received data, reset reconnects counter
reconnects = 0
except (websocket.WebSocketConnectionClosedException, Exception):
except websocket.WebSocketConnectionClosedException:
if reconnects <= plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
reconnects += 1