mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
fix a reconnection bug
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1892 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8628be3b35
commit
7ca2b01791
1 changed files with 6 additions and 3 deletions
|
@ -1620,15 +1620,18 @@ bool p3ConnectMgr::doNextAttempt(std::string id)
|
|||
it = mFriendList.find(id);
|
||||
if (it == mFriendList.end())
|
||||
{
|
||||
#ifdef CONN_DEBUG
|
||||
std::cerr << "p3ConnectMgr::connectResult() Failed, missing Friend " << " id: " << id << std::endl;
|
||||
#endif
|
||||
rslog(RSL_WARNING, p3connectzone, "p3ConnectMgr::connectResult() Failed, missing Friend ");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
it->second.inConnAttempt = false;
|
||||
|
||||
if ((it->second.state & RS_PEER_S_CONNECTED) && !(it->second.state & RS_NET_CONN_TUNNEL)) {
|
||||
rslog(RSL_WARNING, p3connectzone, "p3ConnectMgr::doNextAttempt() peer is already connected and not in tunnel mode, don't do next attempt.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (it->second.connAddrs.size() < 1)
|
||||
{
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue