mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
1ac3eee9fe
commit
10dcad632a
@ -351,7 +351,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 = 0 ; // forces immediate re-connexion
|
||||
it->second.lastattempt = time(NULL) - MIN_RETRY_PERIOD + 5 ; // forces immediate re-connexion in 5 seconds
|
||||
}
|
||||
|
||||
IndicateConfigChanged();
|
||||
|
Loading…
Reference in New Issue
Block a user