aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-11 12:39:09 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-06-11 12:40:13 +0200
commit634bd61b76c9d03d7ce7dfab4e4a48f4b70f282a (patch)
tree3d1c47521c73840e060b7db616214d7a75dc884d
parent5bd6c31bd63261f16d3d1b40512a8bb51b28abcf (diff)
convert an if into an else if in OpenNetworkConnection()
-rw-r--r--src/net.cpp3
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);