aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-12-07 14:47:12 -0800
committerDave Barach <openvpp@barachs.net>2021-12-08 00:12:51 +0000
commit13987dab0d79f7253ae5db0d93af923cb0e725b1 (patch)
tree8921a5863208e4243a58ca08c845015bae4796cd
parent5ffb9649bff4107d28b59198bfeed445ddf6ec64 (diff)
session: fix duplicate segment del message
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I42b5a5a07aae6708a20ed424c8f26ddbe91278fb
-rw-r--r--src/vnet/session/application_local.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c
index eb1c2582430..1bf5d9371e1 100644
--- a/src/vnet/session/application_local.c
+++ b/src/vnet/session/application_local.c
@@ -304,12 +304,7 @@ ct_session_dealloc_fifos (ct_connection_t *ct, svm_fifo_t *rx_fifo,
app_worker_del_segment_notify (app_wrk, ct->segment_handle);
}
- if (!segment_manager_app_detached (sm))
- {
- app_wrk = app_worker_get (ct->server_wrk);
- app_worker_del_segment_notify (app_wrk, ct->segment_handle);
- }
-
+ /* Notify server app and free segment */
segment_manager_lock_and_del_segment (sm, seg_index);
/* Cleanup segment manager if needed. If server detaches there's a chance