Changeset 2721


Ignore:
Timestamp:
May 22, 2009 4:11:33 PM (10 years ago)
Author:
bennylp
Message:

More ticket #851: added extra timer and mutex protection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/sipit24/pjnath/src/pjnath/ice_session.c

    r2719 r2721  
    11031103    PJ_UNUSED_ARG(th); 
    11041104 
     1105    pj_mutex_lock(ice->mutex); 
     1106 
    11051107    te->id = TIMER_NONE; 
    11061108 
     
    11341136        break; 
    11351137    } 
     1138 
     1139    pj_mutex_unlock(ice->mutex); 
    11361140} 
    11371141 
     
    15311535              ice->opt.nominated_check_delay)); 
    15321536 
     1537        if (ice->timer.id != TIMER_NONE) { 
     1538            pj_timer_heap_cancel(ice->stun_cfg.timer_heap, &ice->timer); 
     1539            ice->timer.id = TIMER_NONE; 
     1540        } 
     1541 
    15331542        /* All components have valid pair. Let connectivity checks run for 
    15341543         * a little bit more time, then start our nominated check. 
Note: See TracChangeset for help on using the changeset viewer.