Skip to content

Commit

Permalink
Fix to use SessionManager.get_session_info() instead of .get_active_s…
Browse files Browse the repository at this point in the history
…ession_info because the session info sometimes can be inactive when accessed from this library (#1355)
  • Loading branch information
whitphx authored Aug 21, 2023
1 parent f0b2bb3 commit 4b82310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streamlit_webrtc/session_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def get_this_session_info() -> Optional[SessionInfo]:
if VER_GTE_1_18_0:
from streamlit.runtime.runtime import Runtime

return Runtime.instance()._session_mgr.get_active_session_info(session_id) # type: ignore # noqa: E501
return Runtime.instance()._session_mgr.get_session_info(session_id) # type: ignore # noqa: E501
elif VER_GTE_1_14_0:
from streamlit.runtime.runtime import Runtime

Expand Down

0 comments on commit 4b82310

Please sign in to comment.