summaryrefslogtreecommitdiffstats
path: root/src/vnet/session/session.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-10-03 01:00:57 -0700
committerDamjan Marion <dmarion@me.com>2018-10-03 17:38:14 +0000
commit400ded36422689c1783e220a1846447bc0058234 (patch)
tree347906f37b5ff1ebdec00fd9c9e8cd5a9befd371 /src/vnet/session/session.c
parent7a40133d3355463368085c14f9fc4b4fd22d549a (diff)
session: fix first segment manager cleanup
Change-Id: I750db7617ff9fd36647743094e0fa855e7dada86 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session/session.c')
-rw-r--r--src/vnet/session/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 372a6f93a95..83b96d317dc 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -760,6 +760,8 @@ stream_session_disconnect_notify (transport_connection_t * tc)
stream_session_t *s;
s = session_get (tc->s_index, tc->thread_index);
+ if (s->session_state >= SESSION_STATE_TRANSPORT_CLOSING)
+ return;
s->session_state = SESSION_STATE_TRANSPORT_CLOSING;
app_wrk = app_worker_get_if_valid (s->app_wrk_index);
if (!app_wrk)