Browse Source

convert an if into an else if in OpenNetworkConnection()

0.10
Philip Kaufmann 11 years ago
parent
commit
634bd61b76
  1. 3
      src/net.cpp

3
src/net.cpp

@ -1432,8 +1432,7 @@ bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOu
FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) || FindNode((CNetAddr)addrConnect) || CNode::IsBanned(addrConnect) ||
FindNode(addrConnect.ToStringIPPort().c_str())) FindNode(addrConnect.ToStringIPPort().c_str()))
return false; return false;
} } else if (FindNode(pszDest))
if (pszDest && FindNode(pszDest))
return false; return false;
CNode* pnode = ConnectNode(addrConnect, pszDest); CNode* pnode = ConnectNode(addrConnect, pszDest);

Loading…
Cancel
Save