mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 13:32:47 +01:00
convert an if into an else if in OpenNetworkConnection()
This commit is contained in:
parent
5bd6c31bd6
commit
634bd61b76
@ -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…
Reference in New Issue
Block a user