Check cloud status on startup before connecting websocket

This commit is contained in:
JonnyWong16 2018-02-14 06:55:44 -08:00
parent a5d2467bfe
commit a53afe05a2
3 changed files with 13 additions and 3 deletions

View file

@ -196,7 +196,7 @@ def main():
# Open connection for websocket
try:
web_socket.start_thread()
web_socket.start_thread(startup=True)
except:
logger.warn(u"Websocket :: Unable to open connection.")
plexpy.initialize_scheduler()