From bcfdf029ad29cc5b0c1f4f02aa2cc194b0e5c4b9 Mon Sep 17 00:00:00 2001 From: TSC <112517630+LucianoCirino@users.noreply.github.com> Date: Mon, 7 Aug 2023 22:57:26 -0500 Subject: [PATCH] Set async thread to daemon Set WebSocket server thread to daemon to ensure it exits with main program. --- tsc_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tsc_utils.py b/tsc_utils.py index 128d3e9..4f5d2ad 100644 --- a/tsc_utils.py +++ b/tsc_utils.py @@ -553,4 +553,5 @@ def send_command_to_frontend(startListening=False, maxCount=0, sendBlob=False): # Start the WebSocket server in a separate thread server_thread = threading.Thread(target=run_server) +server_thread.daemon = True server_thread.start() \ No newline at end of file