aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/session/application_worker.c7
1 files changed, 1 insertions, 6 deletions
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);