diff options
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/session/session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index a50d3f4b9e0..3a7e98053c6 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -999,12 +999,12 @@ session_switch_pool (void *cb_args) ASSERT (args->thread_index == vlib_get_thread_index ()); s = session_get (args->session_index, args->thread_index); + /* Check if session closed during migration */ + rargs.is_closed = s->session_state >= SESSION_STATE_TRANSPORT_CLOSING; + transport_cleanup (session_get_transport_proto (s), s->connection_index, s->thread_index); - /* Check if session closed during migration */ - rargs.is_closed = s->session_state > SESSION_STATE_READY; - app_wrk = app_worker_get_if_valid (s->app_wrk_index); if (app_wrk) { |