From 096f2f83f62bc7eea269d651172ec27b2ec3522f Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 2 Apr 2019 10:17:48 -0700 Subject: session: remove session logic from io rx evt sender Change-Id: I54fff6986ea6455aff25e0cf1b83117860859e10 Signed-off-by: Florin Coras --- src/vnet/session/application_worker.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/vnet/session/application_worker.c b/src/vnet/session/application_worker.c index 6f504dafa43..a8edad3edbb 100644 --- a/src/vnet/session/application_worker.c +++ b/src/vnet/session/application_worker.c @@ -553,12 +553,7 @@ app_send_io_evt_rx (app_worker_t * app_wrk, session_t * s, u8 lock) if (PREDICT_FALSE (s->session_state != SESSION_STATE_READY && s->session_state != SESSION_STATE_LISTENING)) - { - /* Session is closed so app will never clean up. Flush rx fifo */ - if (s->session_state == SESSION_STATE_CLOSED) - svm_fifo_dequeue_drop_all (s->rx_fifo); - return 0; - } + return 0; if (app_worker_application_is_builtin (app_wrk)) return app_worker_builtin_rx (app_wrk, s); -- cgit 1.2.3-korg