Initialize scheduler to reconnect websocket when failed on startup

This commit is contained in:
JonnyWong16 2017-08-13 09:44:15 -07:00
parent 21309ba280
commit a0799e8197
4 changed files with 6 additions and 4 deletions

View file

@ -193,6 +193,7 @@ def main():
web_socket.start_thread()
except:
logger.warn(u"Websocket :: Unable to open connection.")
plexpy.initialize_scheduler()
# Force the http port if neccessary
if args.port: