]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
revert
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Sep 2013 19:50:17 +0000 (00:50 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 5 Sep 2013 19:50:17 +0000 (00:50 +0500)
src/mod/endpoints/mod_rtmp/mod_rtmp.c

index 2ba21a1d6bf4ecfec82277f06ce62ecfe24151a6..339ce818730a2f6859faa2049ea7214b105df601 100644 (file)
@@ -849,8 +849,6 @@ 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_rwunlock(session);
-
                        /* 
                         * This is here so that if the FS session still exists and has the FS session write(or read) lock, then we won't destroy the rsession 
                         * until the FS session is finished with it. But if the rsession is able to get the FS session