From 7cfe6bb222bbc7b9f4bff02340e09c5615cb1b2a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 21 May 2010 16:18:36 -0500 Subject: [PATCH] remove race (part 2) --- src/mod/endpoints/mod_sofia/sofia.c | 4 ---- 1 file changed, 4 deletions(-) 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); - } } }