diff options
author | Florin Coras <fcoras@cisco.com> | 2019-06-11 12:31:31 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-06-12 20:18:45 +0000 |
commit | 87d663337931be870891a809cf86d1ee1974fedf (patch) | |
tree | 483c54e128d290f685a13b4b6f130c6f587dfc01 /src/vnet/session/application_worker.c | |
parent | 87a9bf8c0399bc5424fbc129e31967cf504810a1 (diff) |
session: use session handles as app listener handles
Type: refactor
Change-Id: I421750147a8a821bd0b522daf6c2b7239e551f12
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/application_worker.c')
-rw-r--r-- | src/vnet/session/application_worker.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index a30191c7cd0..6f137e91e55 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -58,10 +58,9 @@ app_worker_free (app_worker_t * app_wrk) vnet_unlisten_args_t _a, *a = &_a; u64 handle, *handles = 0; segment_manager_t *sm; + session_t *ls; u32 sm_index; int i; - app_listener_t *al; - session_t *ls; /* * Listener cleanup @@ -70,8 +69,7 @@ app_worker_free (app_worker_t * app_wrk) /* *INDENT-OFF* */ hash_foreach (handle, sm_index, app_wrk->listeners_table, ({ ls = listen_session_get_from_handle (handle); - al = app_listener_get (app, ls->al_index); - vec_add1 (handles, app_listener_handle (al)); + vec_add1 (handles, app_listen_session_handle (ls)); sm = segment_manager_get (sm_index); sm->app_wrk_index = SEGMENT_MANAGER_INVALID_APP_INDEX; })); |