nr,sched: fix dangling reference to ue_cfg in scheduler

master
Francisco 3 years ago committed by Francisco Paisana
parent 73859a5b6a
commit efdd249cb3

@ -89,7 +89,7 @@ void ue::set_cfg(const ue_cfg_t& cfg)
for (auto& ue_cc_cfg : cfg.carriers) { for (auto& ue_cc_cfg : cfg.carriers) {
if (ue_cc_cfg.active) { if (ue_cc_cfg.active) {
if (carriers[ue_cc_cfg.cc] == nullptr) { if (carriers[ue_cc_cfg.cc] == nullptr) {
carriers[ue_cc_cfg.cc].reset(new ue_carrier(rnti, cfg, sched_cfg.cells[ue_cc_cfg.cc])); carriers[ue_cc_cfg.cc].reset(new ue_carrier(rnti, ue_cfg, sched_cfg.cells[ue_cc_cfg.cc]));
} else { } else {
carriers[ue_cc_cfg.cc]->set_cfg(ue_cfg); carriers[ue_cc_cfg.cc]->set_cfg(ue_cfg);
} }

Loading…
Cancel
Save