Changeset 1574


Ignore:
Timestamp:
Nov 11, 2007 7:07:33 AM (12 years ago)
Author:
bennylp
Message:

Some protection to prevent ICE session from being destroyed while callback is still running

File:
1 edited

Legend:

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

    r1498 r1574  
    337337    } 
    338338 
     339    /* Let other callbacks finish */ 
     340    if (ice->mutex) { 
     341        pj_mutex_lock(ice->mutex); 
     342        pj_mutex_unlock(ice->mutex); 
     343    } 
     344 
    339345    if (ice->completion_timer.id) { 
    340346        pj_timer_heap_cancel(ice->stun_cfg.timer_heap,  
Note: See TracChangeset for help on using the changeset viewer.