SRSUE: protect scell state

master
Xavier Arteaga 4 years ago committed by Andre Puschmann
parent 036026be04
commit 4b8cd7ce92

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

Loading…
Cancel
Save