Ignore:
Timestamp:
Mar 29, 2017 2:40:48 AM (4 years ago)
Author:
ming
Message:

Fixed #2002: Deadlock between PJSUA LOCK, transaction group lock, and UA mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c

    r5456 r5573  
    552552 
    553553        /* Lookup the INVITE transaction */ 
    554         tsx = pjsip_tsx_layer_find_tsx(&key, PJ_TRUE); 
     554        tsx = pjsip_tsx_layer_find_tsx2(&key, PJ_TRUE); 
    555555 
    556556        /* We should find the dialog attached to the INVITE transaction */ 
    557557        if (tsx) { 
    558558            dlg = (pjsip_dialog*) tsx->mod_data[mod_ua.mod.id]; 
    559             pj_grp_lock_release(tsx->grp_lock); 
     559            pj_grp_lock_dec_ref(tsx->grp_lock); 
    560560 
    561561            /* Dlg may be NULL on some extreme condition 
Note: See TracChangeset for help on using the changeset viewer.