Ignore:
Timestamp:
Jul 4, 2016 1:12:24 PM (3 years ago)
Author:
nanang
Message:

Fix #1942: TURN socket should not start TURN allocation in state PJ_TURN_STATE_RESOLVED when previous state is already PJ_TURN_STATE_ALLOCATING.

File:
1 edited

Legend:

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

    r4606 r5375  
    735735    if (turn_sock == NULL) { 
    736736        /* We've been destroyed */ 
     737        return; 
     738    } 
     739 
     740    if (old_state == PJ_TURN_STATE_ALLOCATING && 
     741        new_state == PJ_TURN_STATE_RESOLVED) 
     742    { 
     743        /* TURN session won't destroy itself upon allocation failure, it will 
     744         * just revert back TURN state to PJ_TURN_STATE_RESOLVED. So, let's 
     745         * avoid infinite loop here (see ticket #1942). 
     746         */ 
    737747        return; 
    738748    } 
Note: See TracChangeset for help on using the changeset viewer.