added reset of current connexions and force-reconnect when network configuration changes.

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

View File

@ -347,6 +347,13 @@ void p3ConnectMgr::netStatusReset()
netFlagUpnpOk = false;
netFlagDhtOk = false;
netFlagStunOk = false;
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
}
IndicateConfigChanged();
}