mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-30 17:17:21 -04:00
disabled syncWithPeers group sync broadcast when mGrpAutoSync is false
This commit is contained in:
parent
6e52804547
commit
1a2e25da71
1 changed files with 21 additions and 20 deletions
|
@ -593,10 +593,10 @@ void RsGxsNetService::syncWithPeers()
|
|||
return;
|
||||
}
|
||||
|
||||
std::set<RsPeerId>::iterator sit = peers.begin();
|
||||
|
||||
if(mGrpAutoSync)
|
||||
{
|
||||
// for now just grps
|
||||
for(; sit != peers.end(); ++sit)
|
||||
for(auto sit = peers.begin(); sit != peers.end(); ++sit)
|
||||
{
|
||||
|
||||
const RsPeerId peerId = *sit;
|
||||
|
@ -619,6 +619,7 @@ void RsGxsNetService::syncWithPeers()
|
|||
#endif
|
||||
generic_sendItem(grp);
|
||||
}
|
||||
}
|
||||
|
||||
if(!mAllowMsgSync)
|
||||
return ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue