diff --git a/plexpy/web_socket.py b/plexpy/web_socket.py index b1a329cd..aee3a61f 100644 --- a/plexpy/web_socket.py +++ b/plexpy/web_socket.py @@ -36,7 +36,9 @@ def start_thread(): # 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() + thread = threading.Thread(target=run) + thread.daemon = True + thread.start() def on_connect():