Commit 6b6d5789 authored by Pekka Pessi's avatar Pekka Pessi

nua/test_100rel.c: fixed timing problem re response to PRACK and ACK

darcs-hash:20070906150519-65a35-6e6aab20b50be79278780d826d8ce8389c9ada62.gz
parent b5816b56
......@@ -413,6 +413,9 @@ int test_prack_auth(struct context *ctx)
TEST_1(e = ep); TEST_E(e->data->e_event, nua_r_prack);
if (e->data->e_status == 100 || e->data->e_status == 407) {
/* The final response to PRACK may be received after ACK is sent */
if (!event_by_type(e->next, nua_r_prack))
run_bc_until(ctx, -1, save_events, -1, save_until_final_response);
TEST_1(e = ep = event_by_type(e->next, nua_r_prack));
}
TEST_E(e->data->e_event, nua_r_prack);
......
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