diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-04-11 09:41:25 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-04-11 09:41:25 +0000 |
commit | 78ce50707aff32caa195be402721001d51dba2c0 (patch) | |
tree | 10e27f86a863393c2281ba6e1005c833405a6856 /pjsip/src/pjsua-lib/pjsua_acc.c | |
parent | c4cf3952e436987946dd8d7626b9cf0c4d75656a (diff) |
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
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@4037 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_acc.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_acc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_acc.c b/pjsip/src/pjsua-lib/pjsua_acc.c index a0a5d81d..4758f391 100644 --- a/pjsip/src/pjsua-lib/pjsua_acc.c +++ b/pjsip/src/pjsua-lib/pjsua_acc.c @@ -2821,11 +2821,12 @@ void pjsua_acc_on_tp_state_changed(pjsip_transport *tp, continue; } - /* Destroy regc to release transport immediately */ + /* Release regc transport immediately + * See https://trac.pjsip.org/repos/ticket/1481 + */ if (pjsua_var.acc[i].regc) { - pjsip_regc_destroy(pjsua_var.acc[i].regc); + pjsip_regc_release_transport(pjsua_var.acc[i].regc); } - pjsua_var.acc[i].regc = NULL; /* Schedule reregistration for this account */ schedule_reregistration(acc); |