aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-10-01 10:32:46 -0700
committerJohn Lo <loj@cisco.com>2019-10-01 21:22:12 +0000
commitb5a2f7056967630c2834b0b4bf03520d96806c3e (patch)
tree12d49da19373879f6c7fe68006c1b11fdc51c6a4
parent922f0b211c160b4f1d05b87ad0103581d17efb8b (diff)
session: allow transport cleanup in any state
Type: fix Third time's a charm Change-Id: I31555a35d2b51f49a93a2a213c28896b0cad4c09 Signed-off-by: Florin Coras <fcoras@cisco.com>
-rw-r--r--src/vnet/session/session.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 47f7326fffb..be62d929363 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -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);