mirror of https://github.com/PentHertz/srsLTE.git
Changes on enb::stop and rem_user to avoid segfaults
This commit is contained in:
parent
b625910b55
commit
c23ceae2ec
|
@ -228,13 +228,13 @@ void enb::stop()
|
|||
{
|
||||
if(started)
|
||||
{
|
||||
gtpu.stop();
|
||||
phy.stop();
|
||||
mac.stop();
|
||||
usleep(1e5);
|
||||
usleep(100000);
|
||||
|
||||
rlc.stop();
|
||||
pdcp.stop();
|
||||
gtpu.stop();
|
||||
rrc.stop();
|
||||
|
||||
usleep(1e5);
|
||||
|
|
|
@ -224,6 +224,7 @@ void rrc::rem_user(uint16_t rnti)
|
|||
rrc_log->info("Disconnecting rnti=0x%x.\n", rnti);
|
||||
/* **Caution** order of removal here is imporant: from bottom to top */
|
||||
mac->ue_rem(rnti); // MAC handles PHY
|
||||
usleep(50000);
|
||||
rlc->rem_user(rnti);
|
||||
pdcp->rem_user(rnti);
|
||||
gtpu->rem_user(rnti);
|
||||
|
|
Loading…
Reference in New Issue