diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-06-11 12:39:09 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-06-11 12:40:13 +0200 |
commit | 634bd61b76c9d03d7ce7dfab4e4a48f4b70f282a (patch) | |
tree | 3d1c47521c73840e060b7db616214d7a75dc884d | |
parent | 5bd6c31bd63261f16d3d1b40512a8bb51b28abcf (diff) |
convert an if into an else if in OpenNetworkConnection()
-rw-r--r-- | src/net.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 07a2848e9c..ac0da26de9 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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); |