From: Anthony Minessale Date: Fri, 21 May 2010 21:18:36 +0000 (-0500) Subject: remove race (part 2) X-Git-Tag: git2svn-syncpoint-master~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cfe6bb222bbc7b9f4bff02340e09c5615cb1b2a;p=thirdparty%2Ffreeswitch.git remove race (part 2) --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 38cc457b34..19cccc6aed 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -6522,10 +6522,6 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ } } else { destination_number = switch_core_session_sprintf(b_session, "answer,intercept:%s", uuid); - if ((c_session = switch_core_session_locate(uuid))) { - switch_channel_t *c_channel = switch_core_session_get_channel(c_session); - switch_core_session_rwunlock(c_session); - } } }