diff --git a/libretroshare/src/services/p3idservice.cc b/libretroshare/src/services/p3idservice.cc index c63dd524b..d86a4fe23 100644 --- a/libretroshare/src/services/p3idservice.cc +++ b/libretroshare/src/services/p3idservice.cc @@ -1368,6 +1368,8 @@ bool p3IdService::cache_start_load() GxsTokenQueue::queueRequest(token, GXSIDREQ_CACHELOAD); std::set groupIdSet; groupIdSet.insert(groupIds.begin(), groupIds.end()); + + RsStackMutex stack(mIdMtx); /********** STACK LOCKED MTX ******/ mGroupsToCache.insert(std::make_pair(token, groupIdSet)); } return 1;