mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
ad96c86f68
commit
1ac3eee9fe
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user