summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-14 23:52:12 +0000
committerFlorin Coras <florin.coras@gmail.com>2020-04-15 15:00:05 +0000
commit77ea42b31ae12f0aef829097225e353199360f30 (patch)
tree743782bb544c8a48e8443716927c0396a7ccbce8
parent92d0eacefbc4991e3e42010b6b0cb625eddcfe40 (diff)
session: detach session from app on cleanup
Type: fix Avoids unwanted notifications. Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ifff27fb0d3644194e3bb3f91d7ed1fd02c6730cd
-rw-r--r--src/vnet/session/segment_manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index b40675ad56f..3e0b8962c07 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -552,7 +552,12 @@ segment_manager_del_sessions (segment_manager_t * sm)
/* *INDENT-ON* */
vec_foreach (handle, handles)
- session_close (session_get_from_handle (*handle));
+ {
+ session = session_get_from_handle (*handle);
+ session_close (session);
+ /* Avoid propagating notifications back to the app */
+ session->app_wrk_index = APP_INVALID_INDEX;
+ }
}
int