Ignore:
Timestamp:
Jul 5, 2012 7:02:50 AM (12 years ago)
Author:
bennylp
Message:

Re #1548: Crash due to racing condition in timer when call is disconnected quickly (thanks Joshua Colp for the report!)

File:
1 edited

Legend:

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

    r3999 r4196  
    456456    } 
    457457 
     458    ice->is_destroying = PJ_TRUE; 
     459 
    458460    /* Let other callbacks finish */ 
    459461    if (ice->mutex) { 
     
    18411843    clist = td->clist; 
    18421844 
     1845    if (ice->is_destroying) 
     1846        return PJ_SUCCESS; 
     1847 
    18431848    pj_mutex_lock(ice->mutex); 
     1849 
     1850    if (ice->is_destroying) { 
     1851        pj_mutex_unlock(ice->mutex); 
     1852        return PJ_SUCCESS; 
     1853    } 
    18441854 
    18451855    /* Set timer ID to FALSE first */ 
Note: See TracChangeset for help on using the changeset viewer.