From 9d35c5d018963fa92037276ffd52df4364dcf590 Mon Sep 17 00:00:00 2001 From: Ismael Gomez Date: Thu, 7 Oct 2021 11:26:25 +0200 Subject: [PATCH] srsue: stop rx stream after finishing sync thread to avoid deadlock at stop --- srsue/src/phy/sync.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srsue/src/phy/sync.cc b/srsue/src/phy/sync.cc index 4209edeba..4d0f0cfe5 100644 --- a/srsue/src/phy/sync.cc +++ b/srsue/src/phy/sync.cc @@ -135,10 +135,10 @@ void sync::stop() } running = false; + wait_thread_finish(); + // Reset (stop Rx stream) as soon as possible to avoid base-band Rx buffer overflow radio_h->reset(); - - wait_thread_finish(); } void sync::reset()