From 7639c475bc2342814408b72cf4d8da4c0980e3a9 Mon Sep 17 00:00:00 2001 From: Raymond Knopp Date: Fri, 5 Jan 2024 17:16:04 +0100 Subject: [PATCH] Only join reorder thread if not disabled --- executables/nr-gnb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executables/nr-gnb.c b/executables/nr-gnb.c index 8edc75c1c4..35dcbde525 100644 --- a/executables/nr-gnb.c +++ b/executables/nr-gnb.c @@ -547,7 +547,8 @@ void term_gNB_Tpool(int inst) { 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); + if (!get_softmodem_params()->reorder_thread_disable) + pthread_join(proc->pthread_tx_reorder, NULL); } /*!