Changeset 5143


Ignore:
Timestamp:
Jul 31, 2015 11:35:20 AM (6 years ago)
Author:
nanang
Message:

Fixed #1873: Only reset account transport pointer after a successful unregistration.

File:
1 edited

Legend:

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

    r5053 r5143  
    21992199            acc->rfc5626_status = OUTBOUND_UNKNOWN; 
    22002200 
     2201            /* Reset pointer to registration transport */ 
     2202            acc->auto_rereg.reg_tp = NULL; 
     2203 
    22012204            /* Stop keep-alive timer if any. */ 
    22022205            update_keep_alive(acc, PJ_FALSE, NULL); 
     
    25102513 
    25112514    /* Reset pointer to registration transport */ 
    2512     pjsua_var.acc[acc_id].auto_rereg.reg_tp = NULL; 
     2515    // Do not reset this here, as if currently there is another registration 
     2516    // on progress, this registration will fail but transport pointer will 
     2517    // become NULL which will prevent transport to be destroyed immediately 
     2518    // after disconnected (which may cause iOS app getting killed (see #1482). 
     2519    //pjsua_var.acc[acc_id].auto_rereg.reg_tp = NULL; 
    25132520 
    25142521    if (renew) { 
Note: See TracChangeset for help on using the changeset viewer.