aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-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);