FS-3685 more issues
This commit is contained in:
parent
4e9861f79e
commit
c8edf6c482
|
@ -3227,10 +3227,11 @@ void sofia_presence_handle_sip_r_subscribe(int status,
|
||||||
gw_sub_ptr->state = SUB_STATE_FAILED;
|
gw_sub_ptr->state = SUB_STATE_FAILED;
|
||||||
|
|
||||||
if (sofia_private) {
|
if (sofia_private) {
|
||||||
|
if (sofia_private->gateway->sub_nh) {
|
||||||
|
nua_handle_bind(sofia_private->gateway->sub_nh, NULL);
|
||||||
nua_handle_destroy(sofia_private->gateway->sub_nh);
|
nua_handle_destroy(sofia_private->gateway->sub_nh);
|
||||||
sofia_private->gateway->sub_nh = NULL;
|
sofia_private->gateway->sub_nh = NULL;
|
||||||
nua_handle_bind(sofia_private->gateway->sub_nh, NULL);
|
}
|
||||||
sofia_private_free(sofia_private);
|
|
||||||
} else {
|
} else {
|
||||||
nua_handle_destroy(nh);
|
nua_handle_destroy(nh);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue