convert an if into an else if in OpenNetworkConnection()
This commit is contained in:
parent
5bd6c31bd6
commit
634bd61b76
1 changed files with 1 additions and 2 deletions
|
@ -1432,8 +1432,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
|
|||
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
|
||||
FindNode(addrConnect.ToStringIPPort().c_str()))
|
||||
return false;
|
||||
}
|
||||
if (pszDest && FindNode(pszDest))
|
||||
} else if (FindNode(pszDest))
|
||||
return false;
|
||||
|
||||
CNode* pnode = ConnectNode(addrConnect, pszDest);
|
||||
|
|
Loading…
Reference in a new issue