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

@ -461,6 +461,7 @@ def start():
notification_handler.start_threads(num_threads=CONFIG.NOTIFICATION_THREADS)
notifiers.check_browser_enabled()
if CONFIG.FIRST_RUN_COMPLETE:
activity_pinger.connect_server(log=True, startup=True)
_STARTED = True

View file

@ -33,7 +33,6 @@ 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

View file

@ -2748,7 +2748,7 @@ class WebInterface(object):
# If first run, start websocket
if first_run:
activity_pinger.connect_server()
activity_pinger.connect_server(log=True, startup=True)
# Reconfigure scheduler if intervals changed
if reschedule: