mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 00:27:27 -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,32 +593,33 @@ void RsGxsNetService::syncWithPeers()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::set<RsPeerId>::iterator sit = peers.begin();
|
if(mGrpAutoSync)
|
||||||
|
{
|
||||||
|
// for now just grps
|
||||||
|
for(auto sit = peers.begin(); sit != peers.end(); ++sit)
|
||||||
|
{
|
||||||
|
|
||||||
// for now just grps
|
const RsPeerId peerId = *sit;
|
||||||
for(; sit != peers.end(); ++sit)
|
|
||||||
{
|
|
||||||
|
|
||||||
const RsPeerId peerId = *sit;
|
ClientGrpMap::const_iterator cit = mClientGrpUpdateMap.find(peerId);
|
||||||
|
uint32_t updateTS = 0;
|
||||||
|
|
||||||
ClientGrpMap::const_iterator cit = mClientGrpUpdateMap.find(peerId);
|
if(cit != mClientGrpUpdateMap.end())
|
||||||
uint32_t updateTS = 0;
|
{
|
||||||
|
const RsGxsGrpUpdate *gui = &cit->second;
|
||||||
if(cit != mClientGrpUpdateMap.end())
|
updateTS = gui->grpUpdateTS;
|
||||||
{
|
}
|
||||||
const RsGxsGrpUpdate *gui = &cit->second;
|
RsNxsSyncGrpReqItem *grp = new RsNxsSyncGrpReqItem(mServType);
|
||||||
updateTS = gui->grpUpdateTS;
|
grp->clear();
|
||||||
}
|
grp->PeerId(*sit);
|
||||||
RsNxsSyncGrpReqItem *grp = new RsNxsSyncGrpReqItem(mServType);
|
grp->updateTS = updateTS;
|
||||||
grp->clear();
|
|
||||||
grp->PeerId(*sit);
|
|
||||||
grp->updateTS = updateTS;
|
|
||||||
|
|
||||||
#ifdef NXS_NET_DEBUG_5
|
#ifdef NXS_NET_DEBUG_5
|
||||||
GXSNETDEBUG_P_(*sit) << "Service "<< std::hex << ((mServiceInfo.mServiceType >> 8)& 0xffff) << std::dec << " sending global group TS of peer id: " << *sit << " ts=" << nice_time_stamp(time(NULL),updateTS) << " (secs ago) to himself" << std::endl;
|
GXSNETDEBUG_P_(*sit) << "Service "<< std::hex << ((mServiceInfo.mServiceType >> 8)& 0xffff) << std::dec << " sending global group TS of peer id: " << *sit << " ts=" << nice_time_stamp(time(NULL),updateTS) << " (secs ago) to himself" << std::endl;
|
||||||
#endif
|
#endif
|
||||||
generic_sendItem(grp);
|
generic_sendItem(grp);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(!mAllowMsgSync)
|
if(!mAllowMsgSync)
|
||||||
return ;
|
return ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue