call: Change to past tense and move code after the free
Reading the "releasing" log output sounded like one more message had been sent and this code is waiting for something. Take a copy of the call id and then print that the call has been released.
This commit is contained in:
parent
aa41b0aafc
commit
153ebbf6e2
|
@ -48,9 +48,10 @@ void call_leg_release(struct call_leg *leg)
|
|||
|
||||
talloc_free(leg);
|
||||
if (!call->initial && !call->remote) {
|
||||
LOGP(DAPP, LOGL_DEBUG, "call(%u) releasing.\n", call->id);
|
||||
uint32_t id = call->id;
|
||||
llist_del(&call->entry);
|
||||
talloc_free(call);
|
||||
LOGP(DAPP, LOGL_DEBUG, "call(%u) released.\n", id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue