mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
fixed bug in friend server auto wash
This commit is contained in:
parent
eefbd8a710
commit
e7b822d1cb
@ -1 +1 @@
|
||||
Subproject commit f0300848539b3decd7034e5c221eed33c1c784bc
|
||||
Subproject commit 47548627adddc444a5d36368bd7a5f5baeed17ba
|
@ -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…
Reference in New Issue
Block a user