From 5af1294f718dcf2bd34512d1a7285da245643cbb Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 14 Mar 2018 16:19:22 -0700 Subject: [PATCH] Make websocket thread daemon --- plexpy/web_socket.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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():