fixed bug in friend server auto wash

This commit is contained in:
csoler 2022-01-17 23:01:07 +01:00
parent eefbd8a710
commit e7b822d1cb
2 changed files with 2 additions and 4 deletions

@ -1 +1 @@
Subproject commit f0300848539b3decd7034e5c221eed33c1c784bc
Subproject commit 47548627adddc444a5d36368bd7a5f5baeed17ba

View File

@ -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)