summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/application_local.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index d1df657229d..856f7489f38 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -23,6 +23,9 @@ ct_enable_disable_main_pre_input_node (u8 is_add)
{
u32 n_conns;
+ if (!vlib_num_workers ())
+ return;
+
n_conns = pool_elts (connections);
if (n_conns > 2)
return;