fix error check in ue addition

This commit is contained in:
Francisco Paisana 2021-01-13 17:57:13 +00:00
parent 9c7c190074
commit 7e6744037c
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ int rrc::add_user(uint16_t rnti, const sched_interface::ue_cfg_t& sched_ue_cfg)
if (rnti != SRSLTE_MRNTI) {
// only non-eMBMS RNTIs are present in user map
std::unique_ptr<ue> u{new ue(this, rnti, sched_ue_cfg)};
if (not u->init()) {
if (u->init() != SRSLTE_SUCCESS) {
rrc_log->error("Adding user rnti=0x%x - Failed to allocate user resources\n", rnti);
return SRSLTE_ERROR;
}