- Timestamp:
- Jan 27, 2010 9:09:27 AM (15 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_transport.h
r3071 r3077 710 710 pj_bool_t tracing; /**< Tracing enabled? */ 711 711 pj_bool_t is_shutdown; /**< Being shutdown? */ 712 pj_bool_t is_destroying; /**< Destroy in progress? */ 712 713 713 714 /** Key for indexing this transport in hash table. */ -
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.