Changeset 5111 for pjproject/trunk
- Timestamp:
- Jun 19, 2015 2:43:34 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transaction.c
r4992 r5111 1796 1796 { 1797 1797 *cont = PJ_FALSE; 1798 1799 /* Decrease pending send counter */ 1800 pj_grp_lock_dec_ref(tsx->grp_lock); 1798 1801 return; 1799 1802 } 1800 1803 1801 1804 pj_grp_lock_acquire(tsx->grp_lock); 1805 1806 /* Decrease pending send counter */ 1807 pj_grp_lock_dec_ref(tsx->grp_lock); 1802 1808 1803 1809 /* Reset */ … … 1933 1939 tdata->mod_data[mod_tsx_layer.mod.id] = tsx; 1934 1940 tsx->pending_tx = tdata; 1941 1942 /* Increment group lock again for the next sending retry, 1943 * to prevent us from being destroyed prematurely (ticket #1859). 1944 */ 1945 pj_grp_lock_add_ref(tsx->grp_lock); 1935 1946 } 1936 1947 } … … 2123 2134 tsx->pending_tx = tdata; 2124 2135 2136 /* Increment group lock while waiting for send operation to complete, 2137 * to prevent us from being destroyed prematurely (ticket #1859). 2138 */ 2139 pj_grp_lock_add_ref(tsx->grp_lock); 2140 2125 2141 /* Begin resolving destination etc to send the message. */ 2126 2142 if (tdata->msg->type == PJSIP_REQUEST_MSG) { … … 2132 2148 status = PJ_SUCCESS; 2133 2149 if (status != PJ_SUCCESS) { 2150 pj_grp_lock_dec_ref(tsx->grp_lock); 2134 2151 pjsip_tx_data_dec_ref(tdata); 2135 2152 tdata->mod_data[mod_tsx_layer.mod.id] = NULL;
Note: See TracChangeset
for help on using the changeset viewer.