mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-30 09:56:14 -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);
|
auto tmp(fit);
|
||||||
++tmp;
|
++tmp;
|
||||||
it.second.closest_peers.erase(fit);
|
it.second.have_added_this_peer.erase(fit);
|
||||||
fit=tmp;
|
fit=tmp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -381,8 +381,6 @@ void FriendServer::autoWash()
|
|||||||
|
|
||||||
for(auto peer_id:to_remove)
|
for(auto peer_id:to_remove)
|
||||||
removePeer(peer_id);
|
removePeer(peer_id);
|
||||||
|
|
||||||
RsDbg() << "done." ;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FriendServer::updateClosestPeers(const RsPeerId& pid,const RsPgpFingerprint& fpr)
|
void FriendServer::updateClosestPeers(const RsPeerId& pid,const RsPgpFingerprint& fpr)
|
||||||
|
Loading…
Reference in New Issue
Block a user