From: Seven Du Date: Fri, 9 Jan 2015 00:00:13 +0000 (+0800) Subject: FS-7036 #resolve #comment fixed in master X-Git-Tag: v1.4.16~1^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d199060249dba691630b6008c867f0d1a2ea14f3;p=thirdparty%2Ffreeswitch.git FS-7036 #resolve #comment fixed in master originate takes care of new thread on outgoging calls, extra thread_launch causes race --- diff --git a/src/mod/endpoints/mod_rtmp/mod_rtmp.c b/src/mod/endpoints/mod_rtmp/mod_rtmp.c index 928ec58fe9..9e29601b4f 100644 --- a/src/mod/endpoints/mod_rtmp/mod_rtmp.c +++ b/src/mod/endpoints/mod_rtmp/mod_rtmp.c @@ -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);