Only connect if first run is complete

This commit is contained in:
JonnyWong16
2018-02-14 08:53:49 -08:00
parent 90443b4028
commit c2713c53dd
3 changed files with 7 additions and 7 deletions

View File

@@ -33,11 +33,10 @@ ws_reconnect = False
def start_thread():
if plexpy.CONFIG.FIRST_RUN_COMPLETE:
# Check for any existing sessions on start up
activity_pinger.check_active_sessions(ws_request=True)
# Start the websocket listener on it's own thread
threading.Thread(target=run).start()
# Check for any existing sessions on start up
activity_pinger.check_active_sessions(ws_request=True)
# Start the websocket listener on it's own thread
threading.Thread(target=run).start()
def on_connect():