SRSUE: protect scell state

This commit is contained in:
Xavier Arteaga 2020-11-09 18:32:49 +01:00 committed by Andre Puschmann
parent 036026be04
commit 4b8cd7ce92
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ public:
*/
void deactivate_all()
{
std::unique_lock<std::mutex> lock(mutex);
for (cfg& e : scell_cfg) {
if (e.status == cfg::active) {
e.status = cfg::inactive;