session: always clean rx mqs on app detach 58/31858/3
authorFlorin Coras <fcoras@cisco.com>
Thu, 1 Apr 2021 04:05:24 +0000 (21:05 -0700)
committerDave Barach <openvpp@barachs.net>
Thu, 1 Apr 2021 15:17:34 +0000 (15:17 +0000)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I47b5b1ad693d131cfc332f6942c86967687a3f2b

src/vnet/session/application.c

index b055ab4..16acc9c 100644 (file)
@@ -574,11 +574,10 @@ app_rx_mqs_epoll_del (application_t *app, app_rx_mq_elt_t *mqe)
 
   aw = &am->wrk[thread_index];
 
+  session_wrk_handle_mq (session_main_get_worker (thread_index), mqe->mq);
+
   if (mqe->flags & APP_RX_MQ_F_PENDING)
-    {
-      session_wrk_handle_mq (session_main_get_worker (thread_index), mqe->mq);
-      appsl_pending_rx_mqs_del (aw, mqe);
-    }
+    appsl_pending_rx_mqs_del (aw, mqe);
 
   clib_file_del_by_index (&file_main, mqe->file_index);
 }