From 9b985ab6eaf312fd6584abf2c72c3983c5e3b2b1 Mon Sep 17 00:00:00 2001 From: Andre Puschmann Date: Thu, 20 Jun 2019 12:48:02 +0200 Subject: [PATCH] stop data plane traffic before sending detach request --- srsue/src/ue.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srsue/src/ue.cc b/srsue/src/ue.cc index 358d9a5fb..923779480 100644 --- a/srsue/src/ue.cc +++ b/srsue/src/ue.cc @@ -231,11 +231,16 @@ void ue::stop() } } -bool ue::switch_on() { +bool ue::switch_on() +{ return stack->switch_on(); } -bool ue::switch_off() { +bool ue::switch_off() +{ + if (gw_inst) { + gw_inst->stop(); + } return stack->switch_off(); }