Changeset 2206


Ignore:
Timestamp:
Aug 12, 2008 12:20:21 PM (11 years ago)
Author:
bennylp
Message:

More ticket #591: Assertion failure in ICE session (thanks Pedro Gonçalves for the report)

File:
1 edited

Legend:

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

    r2202 r2206  
    16671667    } 
    16681668 
    1669     /* Set this check to WAITING */ 
    1670     check_set_state(ice, &clist->checks[i],  
    1671                     PJ_ICE_SESS_CHECK_STATE_WAITING, PJ_SUCCESS); 
     1669    /* Set this check to WAITING only if state is frozen. It may be possible 
     1670     * that this check has already been started by a trigger check 
     1671     */ 
     1672    if (clist->checks[i].state == PJ_ICE_SESS_CHECK_STATE_FROZEN) { 
     1673        check_set_state(ice, &clist->checks[i],  
     1674                        PJ_ICE_SESS_CHECK_STATE_WAITING, PJ_SUCCESS); 
     1675    } 
     1676 
    16721677    cand0 = clist->checks[i].lcand; 
    16731678    flist[flist_cnt++] = &clist->checks[i].lcand->foundation; 
     
    16851690            find_str(flist, flist_cnt, &cand1->foundation)==NULL) 
    16861691        { 
    1687             check_set_state(ice, &clist->checks[i],  
    1688                             PJ_ICE_SESS_CHECK_STATE_WAITING, PJ_SUCCESS); 
     1692            if (clist->checks[i].state == PJ_ICE_SESS_CHECK_STATE_FROZEN) { 
     1693                check_set_state(ice, &clist->checks[i],  
     1694                                PJ_ICE_SESS_CHECK_STATE_WAITING, PJ_SUCCESS); 
     1695            } 
    16891696            flist[flist_cnt++] = &cand1->foundation; 
    16901697        } 
Note: See TracChangeset for help on using the changeset viewer.