From 471772489a526d7fc985fe9ea8f08fbb5a8fc1c2 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 6 Sep 2013 00:48:18 +0500 Subject: [PATCH] revert --- src/mod/endpoints/mod_rtmp/mod_rtmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index b7a90a969b..2ba21a1d6b 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -857,7 +857,7 @@ switch_status_t rtmp_session_destroy(rtmp_session_t **rsession) * write lock, before the FS session is hungup, then once the FS session does get the write lock * the rsession pointer will be null, and the FS session will never try and touch the already destroyed rsession. */ - 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 ) {