diff --git a/srsenb/src/enb.cc b/srsenb/src/enb.cc index 1ea3c114f..97722f5b2 100644 --- a/srsenb/src/enb.cc +++ b/srsenb/src/enb.cc @@ -148,6 +148,10 @@ void enb::stop() { if (started) { // tear down in reverse order + if (radio) { + radio->stop(); + } + if (phy) { phy->stop(); } @@ -160,10 +164,6 @@ void enb::stop() nr_stack->stop(); } - if (radio) { - radio->stop(); - } - // Now that everything is teared down, log sector stop events. const std::string& sib9_hnb_name = rrc_cfg.sibs[8].sib9().hnb_name_present ? rrc_cfg.sibs[8].sib9().hnb_name.to_string() : "";