From 27acaa3ad7bdf909009cee8e2d34450fa4983745 Mon Sep 17 00:00:00 2001 From: Ludo Date: Mon, 13 Nov 2023 13:48:56 +0100 Subject: [PATCH] Update WebSocketThread to WebSocketStreamThread and add name to WebSocketSetupThread --- test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 6181877..2d56115 100644 --- a/test.py +++ b/test.py @@ -88,7 +88,7 @@ def run(*args): send_frames(ws) streaming = False - threading.Thread(target=run, name="WebSocketThread").start() + threading.Thread(target=run, name="WebSocketStreamThread").start() def on_close(ws, close_status_code, close_msg): @@ -118,7 +118,8 @@ def start_websocket(): try: - threading.Thread(target=start_websocket, daemon=True).start() + threading.Thread(target=start_websocket, + name="WebSocketSetupThread", daemon=True).start() while True: update_annotation(camera)