start peer connection 6 sec after net reset

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1913 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-12-18 23:34:34 +00:00
parent 76c774a76a
commit 335e2e6d71

View File

@ -100,7 +100,7 @@ peerConnectState::peerConnectState()
lastcontact(0),
connecttype(0),
lastavailable(0),
lastattempt(0),
lastattempt(time(NULL) - MIN_RETRY_PERIOD + 6), //start connection in 6 sec
name("nameless"), state(0), actions(0),
source(0),
inConnAttempt(0)
@ -363,7 +363,7 @@ void p3ConnectMgr::netStatusReset()
for(std::map<std::string, peerConnectState>::iterator it = mFriendList.begin(); it != mFriendList.end(); it++)
{
it->second.state &= ~RS_PEER_S_CONNECTED ;
it->second.lastattempt = time(NULL) - MIN_RETRY_PERIOD + 5 ; // forces immediate re-connexion in 5 seconds
it->second.lastattempt = time(NULL) - MIN_RETRY_PERIOD + 6; // forces immediate re-connexion in 6 seconds.
}
IndicateConfigChanged();