Ignore:
Timestamp:
Apr 11, 2012 9:41:25 AM (7 years ago)
Author:
bennylp
Message:

More re #1481: Destroying the regc may lead to dangling binding in the register, so instead of destroying the regc, instruct it to release the transport instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c

    r4033 r4037  
    28222822        } 
    28232823 
    2824         /* Destroy regc to release transport immediately */ 
     2824        /* Release regc transport immediately 
     2825         * See https://trac.pjsip.org/repos/ticket/1481 
     2826         */ 
    28252827        if (pjsua_var.acc[i].regc) { 
    2826             pjsip_regc_destroy(pjsua_var.acc[i].regc); 
    2827         } 
    2828         pjsua_var.acc[i].regc = NULL; 
     2828            pjsip_regc_release_transport(pjsua_var.acc[i].regc); 
     2829        } 
    28292830 
    28302831        /* Schedule reregistration for this account */ 
Note: See TracChangeset for help on using the changeset viewer.