dont destroy handle when subs are inside a call's dialog

This commit is contained in:
Anthony Minessale 2013-03-06 18:01:21 -06:00
parent d7a9c18865
commit 228f9772d7
1 changed files with 3 additions and 1 deletions

View File

@ -4072,7 +4072,9 @@ void sofia_presence_handle_sip_i_subscribe(int status,
nua_respond(nh, 481, "INVALID SUBSCRIPTION", TAG_END());
}
nua_handle_destroy(nh);
if (!sofia_private || !sofia_private->is_call) {
nua_handle_destroy(nh);
}
}