aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/tcp/builtin_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/tcp/builtin_client.c')
-rw-r--r--src/vnet/tcp/builtin_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/tcp/builtin_client.c b/src/vnet/tcp/builtin_client.c
index 48daffb41de..0cb9faa8769 100644
--- a/src/vnet/tcp/builtin_client.c
+++ b/src/vnet/tcp/builtin_client.c
@@ -433,8 +433,6 @@ builtin_session_connected_callback (u32 app_index, u32 api_context,
u32 session_index;
u8 thread_index = vlib_get_thread_index ();
- ASSERT (s->thread_index == thread_index);
-
if (is_fail)
{
clib_warning ("connection %d failed!", api_context);
@@ -442,6 +440,8 @@ builtin_session_connected_callback (u32 app_index, u32 api_context,
return 0;
}
+ ASSERT (s->thread_index == thread_index);
+
if (!tm->vpp_event_queue[thread_index])
tm->vpp_event_queue[thread_index] =
session_manager_get_vpp_event_queue (thread_index);