Changeset 3077 for pjproject/trunk/pjsip/src/pjsip/sip_transport.c
- Timestamp:
- Jan 27, 2010 9:09:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r2915 r3077 817 817 if (pj_atomic_dec_and_get(tp->ref_cnt) == 0) { 818 818 pj_lock_acquire(tp->tpmgr->lock); 819 /* Verify again. */ 820 if (pj_atomic_get(tp->ref_cnt) == 0) { 819 /* Verify again. Do not register timer if the transport is 820 * being destroyed. 821 */ 822 if (pj_atomic_get(tp->ref_cnt) == 0 && !tp->is_destroying) { 821 823 pj_time_val delay; 822 824 … … 898 900 pj_lock_acquire(tp->lock); 899 901 pj_lock_acquire(mgr->lock); 902 903 tp->is_destroying = PJ_TRUE; 900 904 901 905 /*
Note: See TracChangeset
for help on using the changeset viewer.