提交 8d370ff6 authored 作者: William King's avatar William King 提交者: Travis Cross

Include the write lock since we're changing the tech_pvt

上级 df141a13
......@@ -838,6 +838,7 @@ switch_status_t rtmp_session_destroy(rtmp_session_t **rsession)
/* At this point we don't know if the session still exists, so request a fresh pointer to it from the core. */
if ( (session = switch_core_session_locate((char *)key)) != NULL ) {
switch_core_session_write_lock(session);
channel = switch_core_session_get_channel(session);
tech_pvt = switch_core_session_get_private(session);
if ( tech_pvt && tech_pvt->rtmp_session ) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论