- Timestamp:
- Jan 11, 2013 4:10:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r4205 r4314 742 742 PJ_ASSERT_RETURN(ice_st, PJ_EINVAL); 743 743 744 sess_add_ref(ice_st); 744 745 ice_st->destroy_req = PJ_TRUE; 745 if ( pj_atomic_get(ice_st->busy_cnt) > 0) {746 if (sess_dec_ref(ice_st)) { 746 747 PJ_LOG(5,(ice_st->obj_name, 747 748 "ICE strans object is busy, will destroy later")); 748 749 return PJ_EPENDING; 749 750 } 750 751 destroy_ice_st(ice_st); 751 752 752 return PJ_SUCCESS; 753 753 } … … 771 771 pj_assert(count >= 0); 772 772 if (count==0 && ice_st->destroy_req) { 773 pj_ice_strans_destroy(ice_st);773 destroy_ice_st(ice_st); 774 774 return PJ_FALSE; 775 775 } else {
Note: See TracChangeset
for help on using the changeset viewer.