mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-10-12 21:40:57 -04:00
fixed bug in friend server auto wash
This commit is contained in:
parent
eefbd8a710
commit
e7b822d1cb
2 changed files with 2 additions and 4 deletions
|
@ -323,7 +323,7 @@ void FriendServer::removePeer(const RsPeerId& peer_id)
|
|||
|
||||
auto tmp(fit);
|
||||
++tmp;
|
||||
it.second.closest_peers.erase(fit);
|
||||
it.second.have_added_this_peer.erase(fit);
|
||||
fit=tmp;
|
||||
}
|
||||
else
|
||||
|
@ -381,8 +381,6 @@ void FriendServer::autoWash()
|
|||
|
||||
for(auto peer_id:to_remove)
|
||||
removePeer(peer_id);
|
||||
|
||||
RsDbg() << "done." ;
|
||||
}
|
||||
|
||||
void FriendServer::updateClosestPeers(const RsPeerId& pid,const RsPgpFingerprint& fpr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue