Ignore:
Timestamp:
Nov 21, 2018 8:22:34 AM (8 months ago)
Author:
riza
Message:

Close #2161: Avoid deadlock triggered by incoming message when transport is being shutdown.

File:
1 edited

Legend:

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

    r5876 r5909  
    35473547    pj_bool_t acc_done[PJSUA_MAX_ACC]; 
    35483548 
     3549    PJSUA_LOCK(); 
    35493550    /* Reset ip_change_active flag. */ 
    35503551    for (; i < (int)PJ_ARRAY_SIZE(pjsua_var.acc); ++i) { 
     
    36613662        } 
    36623663    } 
     3664    PJSUA_UNLOCK(); 
    36633665    return status; 
    36643666} 
     
    37733775     
    37743776    if (param->restart_listener) { 
     3777        PJSUA_LOCK(); 
    37753778        /* Restart listener/transport, handle_ip_change_on_acc() will 
    37763779         * be called after listener restart is completed successfully. 
     
    37863789            } 
    37873790        } 
     3791        PJSUA_UNLOCK(); 
    37883792    } else { 
    37893793        status = handle_ip_change_on_acc(); 
Note: See TracChangeset for help on using the changeset viewer.