summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/application_worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/session/application_worker.c')
-rw-r--r--src/vnet/session/application_worker.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c
index 17aeb57d49b..2b2cc344f05 100644
--- a/src/vnet/session/application_worker.c
+++ b/src/vnet/session/application_worker.c
@@ -180,12 +180,12 @@ app_worker_alloc_segment_manager (app_worker_t * app_wrk)
{
sm = segment_manager_get (app_wrk->first_segment_manager);
app_wrk->first_segment_manager_in_use = 1;
- return sm;
}
-
- sm = segment_manager_alloc ();
+ else
+ {
+ sm = segment_manager_alloc ();
+ }
sm->app_wrk_index = app_wrk->wrk_index;
-
return sm;
}