- Timestamp:
- Feb 27, 2013 3:02:03 PM (10 years ago)
- Location:
- pjproject/branches/1.x
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x
- Property svn:mergeinfo changed
/pjproject/trunk merged: 4352
- Property svn:mergeinfo changed
-
pjproject/branches/1.x/pjnath/src/pjnath/stun_transaction.c
r3553 r4407 181 181 * Transmit message. 182 182 */ 183 static pj_status_t tsx_transmit_msg(pj_stun_client_tsx *tsx) 183 static pj_status_t tsx_transmit_msg(pj_stun_client_tsx *tsx, 184 pj_bool_t mod_count) 184 185 { 185 186 pj_status_t status; … … 188 189 !tsx->require_retransmit, PJ_EBUSY); 189 190 190 if (tsx->require_retransmit ) {191 if (tsx->require_retransmit && mod_count) { 191 192 /* Calculate retransmit/timeout delay */ 192 193 if (tsx->transmit_count == 0) { … … 222 223 223 224 224 tsx->transmit_count++; 225 if (mod_count) 226 tsx->transmit_count++; 225 227 226 228 PJ_LOG(5,(tsx->obj_name, "STUN sending message (transmit count=%d)", … … 233 235 /* We've been destroyed, don't access the object. */ 234 236 } else if (status != PJ_SUCCESS) { 235 if (tsx->retransmit_timer.id != 0 ) {237 if (tsx->retransmit_timer.id != 0 && mod_count) { 236 238 pj_timer_heap_cancel(tsx->timer_heap, 237 239 &tsx->retransmit_timer); … … 295 297 296 298 /* Send the message */ 297 status = tsx_transmit_msg(tsx );299 status = tsx_transmit_msg(tsx, PJ_TRUE); 298 300 if (status != PJ_SUCCESS) { 299 301 if (tsx->retransmit_timer.id != 0) { … … 333 335 334 336 tsx->retransmit_timer.id = 0; 335 status = tsx_transmit_msg(tsx );337 status = tsx_transmit_msg(tsx, PJ_TRUE); 336 338 if (status == PJNATH_ESTUNDESTROYED) { 337 339 /* We've been destroyed, don't try to access the object */ … … 351 353 * Request to retransmit the request. 352 354 */ 353 PJ_DEF(pj_status_t) pj_stun_client_tsx_retransmit(pj_stun_client_tsx *tsx) 355 PJ_DEF(pj_status_t) pj_stun_client_tsx_retransmit(pj_stun_client_tsx *tsx, 356 pj_bool_t mod_count) 354 357 { 355 358 if (tsx->destroy_timer.id != 0) { … … 362 365 } 363 366 364 return tsx_transmit_msg(tsx );367 return tsx_transmit_msg(tsx, mod_count); 365 368 } 366 369
Note: See TracChangeset
for help on using the changeset viewer.