Changeset 3965


Ignore:
Timestamp:
Mar 6, 2012 7:39:04 AM (13 years ago)
Author:
nanang
Message:

Fix #1459: returned back the old/1.x way of controlling dialog lifetime in pjsua_call_make_call().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r3925 r3965  
    696696     * fails the dialog will be destroyed prematurely. 
    697697     */ 
    698 //    pjsip_dlg_inc_lock(dlg); 
     698    pjsip_dlg_inc_lock(dlg); 
    699699 
    700700    /* Calculate call's secure level */ 
     
    739739        *p_call_id = call_id; 
    740740 
     741    pjsip_dlg_dec_lock(dlg); 
    741742    pj_pool_release(tmp_pool); 
    742743    PJSUA_UNLOCK(); 
     
    749750on_error: 
    750751    if (dlg) { 
    751         pjsip_dlg_inc_lock(dlg); 
    752752        /* This may destroy the dialog */ 
    753753        pjsip_dlg_dec_lock(dlg); 
Note: See TracChangeset for help on using the changeset viewer.