Changeset 4652


Ignore:
Timestamp:
Nov 14, 2013 9:36:05 AM (11 years ago)
Author:
ming
Message:

Re #1630 (misc): Prevent retransmit timer cancellation during retransmission of STUN request.

This is related to ticket #1620: Fix the calculation of transmission count during retransmission of STUN request. If mod_count is set to PJ_FALSE, retransmit timer shouldn't be cancelled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_transaction.c

    r4413 r4652  
    388388    } 
    389389 
    390     pj_timer_heap_cancel_if_active(tsx->timer_heap, &tsx->retransmit_timer, 
    391                                    TIMER_INACTIVE); 
     390    if (mod_count) { 
     391        pj_timer_heap_cancel_if_active(tsx->timer_heap, &tsx->retransmit_timer, 
     392                                       TIMER_INACTIVE); 
     393    } 
    392394 
    393395    return tsx_transmit_msg(tsx, mod_count); 
Note: See TracChangeset for help on using the changeset viewer.