added seperated limit for discovery (30 days)

This commit is contained in:
sehraf 2016-02-19 16:32:57 +01:00
parent 841299d077
commit 4140969fcb
3 changed files with 10 additions and 6 deletions

View file

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