mirror of
https://github.com/RetroShare/libretroshare.git
synced 2026-09-14 11:05:45 +05:00
Prevent selecting data from the database in RsGxsNetService::syncWithPeers without online friends.
This commit is contained in:
parent
8ba0276704
commit
8437ced209
@ -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();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user