diff --git a/srsue/hdr/phy/scell/scell_sync.h b/srsue/hdr/phy/scell/scell_sync.h index 59f677c86..0f80d0cb4 100644 --- a/srsue/hdr/phy/scell/scell_sync.h +++ b/srsue/hdr/phy/scell/scell_sync.h @@ -199,7 +199,11 @@ public: /** * Resets the class, goes back into IDLE mode */ - void stop() { state = STATE_IDLE; } + void stop() + { + std::unique_lock lock(mutex); + state = STATE_IDLE; + } /** * Runs internal FSM, performing Synchronization operations on the provided buffer. It expects data per subframe