Combine connection function for cloud and non-cloud servers

This commit is contained in:
JonnyWong16 2018-02-14 08:45:45 -08:00
parent a53afe05a2
commit e0109ed179
5 changed files with 45 additions and 62 deletions

View file

@ -28,6 +28,7 @@ from mako.lookup import TemplateLookup
from mako import exceptions
import plexpy
import activity_pinger
import common
import config
import database
@ -2747,7 +2748,7 @@ class WebInterface(object):
# If first run, start websocket
if first_run:
web_socket.start_thread()
activity_pinger.connect_server()
# Reconfigure scheduler if intervals changed
if reschedule: