diff options
| author | Philip Kaufmann <[email protected]> | 2014-06-11 12:39:09 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-06-11 12:40:13 +0200 |
| commit | 634bd61b76c9d03d7ce7dfab4e4a48f4b70f282a (patch) | |
| tree | 3d1c47521c73840e060b7db616214d7a75dc884d /src/net.cpp | |
| parent | small cleanup of net (diff) | |
| download | discoin-634bd61b76c9d03d7ce7dfab4e4a48f4b70f282a.tar.xz discoin-634bd61b76c9d03d7ce7dfab4e4a48f4b70f282a.zip | |
convert an if into an else if in OpenNetworkConnection()
Diffstat (limited to 'src/net.cpp')
| -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 07a2848e9..ac0da26de 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); |