setup reconnexion time to 5 seconds after reset

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-11-06 22:56:01 +00:00
parent 1ac3eee9fe
commit 10dcad632a

View File

@ -351,7 +351,7 @@ void p3ConnectMgr::netStatusReset()
for(std::map<std::string, peerConnectState>::iterator it = mFriendList.begin(); it != mFriendList.end(); it++) for(std::map<std::string, peerConnectState>::iterator it = mFriendList.begin(); it != mFriendList.end(); it++)
{ {
it->second.state &= ~RS_PEER_S_CONNECTED ; it->second.state &= ~RS_PEER_S_CONNECTED ;
it->second.lastattempt = 0 ; // forces immediate re-connexion it->second.lastattempt = time(NULL) - MIN_RETRY_PERIOD + 5 ; // forces immediate re-connexion in 5 seconds
} }
IndicateConfigChanged(); IndicateConfigChanged();