diff --git a/executables/nr-gnb.c b/executables/nr-gnb.c index 388d701b83..0bac9ce3eb 100644 --- a/executables/nr-gnb.c +++ b/executables/nr-gnb.c @@ -482,6 +482,11 @@ void term_gNB_Tpool(int inst) { abortNotifiedFIFO(&gNB->L1_tx_free); abortNotifiedFIFO(&gNB->L1_tx_filled); abortNotifiedFIFO(&gNB->L1_tx_out); + + gNB_L1_proc_t *proc = &gNB->proc; + if (!get_softmodem_params()->emulate_l1) + pthread_join(proc->L1_stats_thread, NULL); + pthread_join(proc->pthread_tx_reorder, NULL); } /*!