Correct init_cont_stats_update(), test for result

This commit is contained in:
Robert Schmidt
2018-11-07 10:54:35 +01:00
parent 2cf4060680
commit f02b539234
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -235,8 +235,11 @@ int flexran_agent_start(mid_t mod_id)
*/
/*Initialize the continuous stats update mechanism*/
flexran_agent_init_cont_stats_update(mod_id);
if (flexran_agent_init_cont_stats_update(mod_id) < 0) {
LOG_E(FLEXRAN_AGENT, "could not initialize continuous stats updates\n");
goto error;
}
new_thread(receive_thread, flexran);
/* Register and initialize the control modules depending on capabilities.