Fix infinite websocket connection loop

This commit is contained in:
JonnyWong16 2018-07-03 20:06:37 -07:00
parent c0f1079b4e
commit c5e37badd8

View file

@ -146,7 +146,6 @@ def run():
reconnects = 0 reconnects = 0
# Try an open the websocket connection # Try an open the websocket connection
while not plexpy.WS_CONNECTED and reconnects < plexpy.CONFIG.WEBSOCKET_CONNECTION_ATTEMPTS:
logger.info(u"Tautulli WebSocket :: Opening %swebsocket." % secure) logger.info(u"Tautulli WebSocket :: Opening %swebsocket." % secure)
try: try:
plexpy.WEBSOCKET = create_connection(uri, header=header) plexpy.WEBSOCKET = create_connection(uri, header=header)