From: Anthony Minessale Date: Thu, 5 Sep 2013 19:48:18 +0000 (+0500) Subject: revert X-Git-Tag: v1.5.6~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=471772489a526d7fc985fe9ea8f08fbb5a8fc1c2;p=thirdparty%2Ffreeswitch.git revert --- 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 ) {