Fix infinite websocket connection loop
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user