session: allow transport cleanup in any state 54/22454/3
authorFlorin Coras <fcoras@cisco.com>
Tue, 1 Oct 2019 17:32:46 +0000 (10:32 -0700)
committerJohn Lo <loj@cisco.com>
Tue, 1 Oct 2019 21:22:12 +0000 (21:22 +0000)
Type: fix

Third time's a charm

Change-Id: I31555a35d2b51f49a93a2a213c28896b0cad4c09
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/session/session.c

index 47f7326..be62d92 100644 (file)
@@ -1281,9 +1281,8 @@ session_transport_cleanup (session_t * s)
 {
   /* Delete from main lookup table before we axe the the transport */
   session_lookup_del_session (s);
-  if (s->session_state < SESSION_STATE_TRANSPORT_DELETED)
-    transport_cleanup (session_get_transport_proto (s), s->connection_index,
-                      s->thread_index);
+  transport_cleanup (session_get_transport_proto (s), s->connection_index,
+                    s->thread_index);
   /* Since we called cleanup, no delete notification will come. So, make
    * sure the session is properly freed. */
   session_free_w_fifos (s);