Prevent selecting data from the database in RsGxsNetService::syncWithPeers without online friends.

This commit is contained in:
thunder2 2015-08-13 14:01:43 +02:00
parent 37316175c0
commit b1101ed429

View File

@ -235,6 +235,10 @@ void RsGxsNetService::syncWithPeers()
std::set<RsPeerId> peers;
mNetMgr->getOnlineList(mServiceInfo.mServiceType, peers);
if (peers.empty()) {
// nothing to do
return;
}
std::set<RsPeerId>::iterator sit = peers.begin();