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

index 113036dafbd9b79373c95a85b889625c17b2de20..b7a90a969b8259cb9ed38f4925185f5ce46d9d9c 100644 (file)
@@ -250,7 +250,6 @@ switch_status_t rtmp_on_hangup(switch_core_session_t *session)
        rtmp_private_t *tech_pvt = NULL;
        rtmp_session_t *rsession = NULL;
 
-       switch_core_session_write_lock(session);
        channel = switch_core_session_get_channel(session);
        assert(channel != NULL);
 
@@ -311,7 +310,6 @@ switch_status_t rtmp_on_hangup(switch_core_session_t *session)
        switch_thread_rwlock_unlock(rsession->rwlock);
 
  done:
-       switch_core_session_rwunlock(session);
        return SWITCH_STATUS_SUCCESS;
 }