Changeset 4938 for pjproject


Ignore:
Timestamp:
Oct 3, 2014 5:58:32 AM (10 years ago)
Author:
ming
Message:

Re #1782 (misc): Only perform unregistration in pjsua_acc_modify() if the reg_uri is valid

File:
1 edited

Legend:

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

    r4935 r4938  
    13391339    /* Unregister first */ 
    13401340    if (unreg_first) { 
    1341         pjsua_acc_set_registration(acc->index, PJ_FALSE); 
     1341        if (acc->cfg.reg_uri.slen) 
     1342            pjsua_acc_set_registration(acc->index, PJ_FALSE); 
    13421343        if (acc->regc != NULL) { 
    13431344            pjsip_regc_destroy(acc->regc); 
Note: See TracChangeset for help on using the changeset viewer.