mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +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(addrConnect.ToStringIPPort().c_str()))
|
||||
return false;
|
||||
}
|
||||
if (pszDest && FindNode(pszDest))
|
||||
} else if (FindNode(pszDest))
|
||||
return false;
|
||||
|
||||
CNode* pnode = ConnectNode(addrConnect, pszDest);
|
||||
|
Loading…
Reference in New Issue
Block a user