]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
remove race (part 2)
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 21 May 2010 21:18:36 +0000 (16:18 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 21 May 2010 21:18:36 +0000 (16:18 -0500)
src/mod/endpoints/mod_sofia/sofia.c

index 38cc457b34f5568c82769e1660989b53a492f44a..19cccc6aed87e5854047cd26905111449b2f28ea 100644 (file)
@@ -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);
-                                                               }
                                                        }
                                                }