From 8d370ff6e648bdf5f3ef83a88f059260c592e469 Mon Sep 17 00:00:00 2001 From: William King Date: Sun, 12 May 2013 14:29:14 -0700 Subject: [PATCH] Include the write lock since we're changing the tech_pvt --- src/mod/endpoints/mod_rtmp/mod_rtmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index 58bbe06fb6..a5d5a1f48e 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -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 ) {