Changeset 1342


Ignore:
Timestamp:
Jun 6, 2007 12:28:10 AM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #320: Assertion error in pjsua when unregistering/removing account while network is disconnected (thanks Bo Huang)

File:
1 edited

Legend:

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

    r1266 r1342  
    366366    if (pjsua_var.acc[acc_id].regc != NULL) { 
    367367        pjsua_acc_set_registration(acc_id, PJ_FALSE); 
    368         pjsip_regc_destroy(pjsua_var.acc[acc_id].regc); 
     368        if (pjsua_var.acc[acc_id].regc) { 
     369            pjsip_regc_destroy(pjsua_var.acc[acc_id].regc); 
     370        } 
    369371        pjsua_var.acc[acc_id].regc = NULL; 
    370372    } 
Note: See TracChangeset for help on using the changeset viewer.