Skip to content

Commit

Permalink
Update WebSocketThread to WebSocketStreamThread
Browse files Browse the repository at this point in the history
and add name to WebSocketSetupThread
  • Loading branch information
infinitel8p committed Nov 13, 2023
1 parent 5e67fa9 commit 27acaa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 27acaa3

Please sign in to comment.