Changeset 3951
- Timestamp:
- Feb 8, 2012 9:29:38 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjnath/src/pjnath/ice_session.c
r3553 r3951 2824 2824 pj_ice_sess_comp *comp; 2825 2825 pj_ice_sess_cand *cand; 2826 pj_uint8_t transport_id; 2827 pj_sockaddr addr; 2826 2828 2827 2829 PJ_ASSERT_RETURN(ice && comp_id, PJ_EINVAL); … … 2839 2841 if (comp == NULL) { 2840 2842 status = PJNATH_EICEINCOMPID; 2843 pj_mutex_unlock(ice->mutex); 2841 2844 goto on_return; 2842 2845 } … … 2844 2847 if (comp->valid_check == NULL) { 2845 2848 status = PJNATH_EICEINPROGRESS; 2849 pj_mutex_unlock(ice->mutex); 2846 2850 goto on_return; 2847 2851 } 2848 2852 2849 2853 cand = comp->valid_check->lcand; 2850 status = (*ice->cb.on_tx_pkt)(ice, comp_id, cand->transport_id, 2854 transport_id = cand->transport_id; 2855 pj_sockaddr_cp(&addr, &comp->valid_check->rcand->addr); 2856 2857 /* Release the mutex now to avoid deadlock (see ticket #1451). */ 2858 pj_mutex_unlock(ice->mutex); 2859 2860 status = (*ice->cb.on_tx_pkt)(ice, comp_id, transport_id, 2851 2861 data, data_len, 2852 & comp->valid_check->rcand->addr,2862 &addr, 2853 2863 sizeof(pj_sockaddr_in)); 2854 2864 2855 2865 on_return: 2856 pj_mutex_unlock(ice->mutex);2857 2866 return status; 2858 2867 }
Note: See TracChangeset
for help on using the changeset viewer.