mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 10:31:05 -04:00
added seperated limit for discovery (30 days)
This commit is contained in:
parent
841299d077
commit
4140969fcb
3 changed files with 10 additions and 6 deletions
|
@ -2749,7 +2749,7 @@ bool p3PeerMgrIMPL::removeUnusedLocations()
|
|||
std::map<RsPeerId, peerState>::iterator it;
|
||||
for(it = mFriendList.begin(); it != mFriendList.end(); ++it)
|
||||
{
|
||||
if (now - it->second.lastcontact > RS_PEER_OLD_PEER)
|
||||
if (now > it->second.lastcontact + RS_PEER_OFFLINE_DELETE)
|
||||
{
|
||||
toRemove.push_back(it->first);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue