Commit 31dedc02 authored by Pekka Pessi's avatar Pekka Pessi

Destroying nta and su timer before sending final nua_r_shutdown().

darcs-hash:20051007074307-65a35-d9ea792ba43f6b1b0c8ec9c369e90df6d02df758.gz
parent a2f64c0b
......@@ -818,7 +818,6 @@ void ua_shutdown(nua_t *nua)
if (nh->nh_soa) {
soa_destroy(nh->nh_soa), nh->nh_soa = NULL;
busy++;
}
if (nh->nh_cr->cr_orq || nh->nh_ss->ss_crequest->cr_orq)
......@@ -838,6 +837,11 @@ void ua_shutdown(nua_t *nua)
else
SET_STATUS(500, "Shutdown timeout");
if (status >= 200) {
su_timer_destroy(nua->nua_timer), nua->nua_timer = NULL;
nta_agent_destroy(nua->nua_nta), nua->nua_nta = NULL;
}
ua_event(nua, NULL, NULL, nua_r_shutdown, status, phrase, TAG_END());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment