Skip to content

Commit

Permalink
Set daemon=True
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jan 24, 2021
1 parent 093f81b commit fc48060
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tiny_streamlit_webrtc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def tiny_streamlit_webrtc(key):
offer = RTCSessionDescription(sdp=offer_json["sdp"], type=offer_json["type"])

answer_queue = queue.Queue()
webrtc_thread = threading.Thread(target=webrtc_worker, args=(offer, answer_queue))
webrtc_thread = threading.Thread(
target=webrtc_worker,
args=(offer, answer_queue),
daemon=True)
webrtc_thread.start()
session_state.webrtc_thread = webrtc_thread

Expand Down

0 comments on commit fc48060

Please sign in to comment.