convert an if into an else if in OpenNetworkConnection()

This commit is contained in:
Philip Kaufmann 2014-06-11 12:39:09 +02:00
parent 5bd6c31bd6
commit 634bd61b76

View File

@ -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);