Skip to content

Commit 20747d7

Browse files
authored
Call self.stop() when an error occurred in process_offer() (#1977)
1 parent d1fbc15 commit 20747d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

streamlit_webrtc/webrtc.py

+1
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ def process_offer(
580580
)
581581

582582
if isinstance(result, Exception):
583+
self.stop(timeout=1)
583584
raise result
584585

585586
return result

0 commit comments

Comments
 (0)