added a few missing mutexes in prevent searches to be shown when already known

This commit is contained in:
csoler 2018-07-05 10:11:12 +02:00
parent 2067b106e4
commit 47e760a2c5
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 34 additions and 32 deletions

View file

@ -5109,6 +5109,8 @@ bool RsGxsNetService::locked_stampMsgServerUpdateTS(const RsGxsGroupId& gid)
TurtleRequestId RsGxsNetService::turtleGroupRequest(const RsGxsGroupId& group_id)
{
RS_STACK_MUTEX(mNxsMutex) ;
time_t now = time(NULL);
auto it = mSearchedGroups.find(group_id) ;
@ -5157,6 +5159,7 @@ bool RsGxsNetService::retrieveDistantSearchResults(TurtleRequestId req,std::map<
}
bool RsGxsNetService::retrieveDistantGroupSummary(const RsGxsGroupId& group_id,RsGxsGroupSummary& gs)
{
RS_STACK_MUTEX(mNxsMutex) ;
for(auto it(mDistantSearchResults.begin());it!=mDistantSearchResults.end();++it)
{
auto it2 = it->second.find(group_id) ;