Changeset 2380 for pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
- Timestamp:
- Dec 17, 2008 2:28:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r2370 r2380 541 541 if (tsx) { 542 542 pjsip_tsx_terminate(tsx, 500); 543 pj_assert(dlg->tsx_count>0); 543 544 --dlg->tsx_count; 544 545 } … … 1412 1413 /* Ask transaction to send the response */ 1413 1414 status = pjsip_tsx_send_msg(tsx, tdata); 1415 1416 /* This function must decrement transmit data request counter 1417 * regardless of the operation status. The transaction only 1418 * decrements the counter if the operation is successful. 1419 */ 1420 if (status != PJ_SUCCESS) { 1421 pjsip_tx_data_dec_ref(tdata); 1422 } 1414 1423 1415 1424 pjsip_dlg_dec_lock(dlg); … … 1899 1908 1900 1909 1901 if (tsx->state == PJSIP_TSX_STATE_TERMINATED) { 1910 /* It is possible that the transaction is terminated and this function 1911 * is called while we're calling on_tsx_state(). So only decrement 1912 * the tsx_count if we're still attached to the transaction. 1913 */ 1914 if (tsx->state == PJSIP_TSX_STATE_TERMINATED && 1915 tsx->mod_data[dlg->ua->id] == dlg) 1916 { 1917 pj_assert(dlg->tsx_count>0); 1902 1918 --dlg->tsx_count; 1903 1919 tsx->mod_data[dlg->ua->id] = NULL;
Note: See TracChangeset
for help on using the changeset viewer.