mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Prevent selecting data from the database in RsGxsNetService::syncWithPeers without online friends.
This commit is contained in:
parent
37316175c0
commit
b1101ed429
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue