]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7036 #resolve #comment fixed in master
authorSeven Du <dujinfang@gmail.com>
Fri, 9 Jan 2015 00:00:13 +0000 (08:00 +0800)
committerSeven Du <dujinfang@gmail.com>
Fri, 9 Jan 2015 00:01:19 +0000 (08:01 +0800)
originate takes care of new thread on outgoging calls, extra thread_launch causes race

src/mod/endpoints/mod_rtmp/mod_rtmp.c

index 928ec58fe9268a8780e7c976101c26a2680d47eb..9e29601b4f35e6b95138c1f7ac505a10dbe64dd9 100644 (file)
@@ -672,11 +672,6 @@ switch_call_cause_t rtmp_outgoing_channel(switch_core_session_t *session, switch
        rtmp_set_channel_variables(*newsession);
 
        switch_core_hash_insert_wrlock(rsession->session_hash, switch_core_session_get_uuid(*newsession), tech_pvt, rsession->session_rwlock);
-               
-       if (switch_core_session_thread_launch(tech_pvt->session) == SWITCH_STATUS_FALSE) {
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Couldn't spawn thread\n");     
-               goto fail;
-       }
 
        if (rsession) {
                rtmp_session_rwunlock(rsession);