- Timestamp:
- Oct 16, 2006 8:05:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r714 r776 582 582 } 583 583 584 /* Increment pending_tsx temporarily to prevent regc from 585 * being destroyed. 586 */ 587 ++regc->pending_tsx; 584 588 585 589 /* Call callback. */ … … 591 595 contact_cnt, contact); 592 596 597 /* Decrement pending_tsx */ 598 --regc->pending_tsx; 593 599 } 594 600 … … 624 630 * may be called even before send_request() returns! 625 631 */ 626 ++regc->pending_tsx;632 regc->pending_tsx += 2; 627 633 status = pjsip_endpt_send_request(regc->endpt, tdata, -1, regc, &tsx_callback); 628 634 if (status!=PJ_SUCCESS) { 629 --regc->pending_tsx;630 635 PJ_LOG(4,(THIS_FILE, "Error sending request, status=%d", status)); 631 636 } 637 --regc->pending_tsx; 638 639 /* Delete the record if user destroy regc during the callback. */ 640 if (regc->_delete_flag && regc->pending_tsx==0) { 641 pjsip_regc_destroy(regc); 642 } 632 643 633 644 return status;
Note: See TracChangeset
for help on using the changeset viewer.