Set async thread to daemon

Set WebSocket server thread to daemon to ensure it exits with main program.
This commit is contained in:
TSC
2023-08-07 22:57:26 -05:00
committed by GitHub
parent 010e799ba3
commit bcfdf029ad

View File

@@ -553,4 +553,5 @@ def send_command_to_frontend(startListening=False, maxCount=0, sendBlob=False):
# Start the WebSocket server in a separate thread # Start the WebSocket server in a separate thread
server_thread = threading.Thread(target=run_server) server_thread = threading.Thread(target=run_server)
server_thread.daemon = True
server_thread.start() server_thread.start()