Ensure trx_stop is called before trx_end
Make sure the radio libs are stopped before `end()` call. This allows for a cleaner exit under most circumstances. Some libraries like zmq_radio don't exit cleanly without it.
This commit is contained in:
@@ -112,6 +112,7 @@ void exit_function(const char *file, const char *function, const int line, const
|
||||
|
||||
oai_exit = 1;
|
||||
|
||||
nrue_ru_stop();
|
||||
nrue_ru_end();
|
||||
|
||||
if (assert) {
|
||||
@@ -457,6 +458,8 @@ int main(int argc, char **argv)
|
||||
LOG_W(NR_PHY, "Returned from ITTI signal handler\n");
|
||||
oai_exit = 1;
|
||||
|
||||
nrue_ru_stop();
|
||||
|
||||
if (PHY_vars_UE_g && PHY_vars_UE_g[0]) {
|
||||
for (int CC_id = 0; CC_id < MAX_NUM_CCs; CC_id++) {
|
||||
PHY_VARS_NR_UE *phy_vars = PHY_vars_UE_g[0][CC_id];
|
||||
|
||||
Reference in New Issue
Block a user