summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-14 23:52:12 +0000
committerAndrew Yourtchenko <ayourtch@gmail.com>2020-08-13 17:20:47 +0000
commit7e5733ad1705280ce70b63169492e310b2c31917 (patch)
tree72b2ab090653a8a27a045bf8f0e7488bd3f5f73f /src
parentc36a90318c0e487296c0123815cd9cfc879bc3cf (diff)
session: detach session from app on cleanup
Type: fix Avoids unwanted notifications. Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ifff27fb0d3644194e3bb3f91d7ed1fd02c6730cd (cherry picked from commit 77ea42b31ae12f0aef829097225e353199360f30)
Diffstat (limited to 'src')
-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 9c33e35e8f0..3edf0dd7c59 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -503,7 +503,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