Changeset 3375 for pjproject/trunk
- Timestamp:
- Nov 29, 2010 2:49:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/publishc.c
r3108 r3375 75 75 pj_bool_t _delete_flag; 76 76 int pending_tsx; 77 pj_bool_t in_callback; 77 78 pj_mutex_t *mutex; 78 79 … … 205 206 PJ_ASSERT_RETURN(pubc, PJ_EINVAL); 206 207 207 if (pubc->pending_tsx ) {208 if (pubc->pending_tsx || pubc->in_callback) { 208 209 pubc->_delete_flag = 1; 209 210 pubc->cb = NULL; … … 554 555 pj_assert(pubc->pending_tsx > 0); 555 556 --pubc->pending_tsx; 557 558 /* Mark that we're in callback to prevent deletion (#1164) */ 559 ++pubc->in_callback; 556 560 557 561 /* If publication data has been deleted by user then remove publication … … 698 702 } 699 703 704 /* No longer in callback. */ 705 --pubc->in_callback; 706 700 707 /* Delete the record if user destroy pubc during the callback. */ 701 708 if (pubc->_delete_flag && pubc->pending_tsx==0) {
Note: See TracChangeset
for help on using the changeset viewer.