@@ -1682,8 +1682,7 @@ void CConnman::ProcessOneShot()
1682
1682
CAddress addr;
1683
1683
CSemaphoreGrant grant (*semOutbound, true );
1684
1684
if (grant) {
1685
- if (!OpenNetworkConnection (addr, false , &grant, strDest.c_str (), true ))
1686
- AddOneShot (strDest);
1685
+ OpenNetworkConnection (addr, false , &grant, strDest.c_str (), true );
1687
1686
}
1688
1687
}
1689
1688
@@ -1953,29 +1952,29 @@ void CConnman::ThreadOpenAddedConnections()
1953
1952
}
1954
1953
1955
1954
// if successful, this moves the passed grant to the constructed node
1956
- bool CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot , bool fFeeler , bool manual_connection)
1955
+ void CConnman::OpenNetworkConnection (const CAddress& addrConnect, bool fCountFailure , CSemaphoreGrant *grantOutbound, const char *pszDest, bool fOneShot , bool fFeeler , bool manual_connection)
1957
1956
{
1958
1957
//
1959
1958
// Initiate outbound network connection
1960
1959
//
1961
1960
if (interruptNet) {
1962
- return false ;
1961
+ return ;
1963
1962
}
1964
1963
if (!fNetworkActive ) {
1965
- return false ;
1964
+ return ;
1966
1965
}
1967
1966
if (!pszDest) {
1968
1967
if (IsLocal (addrConnect) ||
1969
1968
FindNode ((CNetAddr)addrConnect) || IsBanned (addrConnect) ||
1970
1969
FindNode (addrConnect.ToStringIPPort ()))
1971
- return false ;
1970
+ return ;
1972
1971
} else if (FindNode (std::string (pszDest)))
1973
- return false ;
1972
+ return ;
1974
1973
1975
1974
CNode* pnode = ConnectNode (addrConnect, pszDest, fCountFailure );
1976
1975
1977
1976
if (!pnode)
1978
- return false ;
1977
+ return ;
1979
1978
if (grantOutbound)
1980
1979
grantOutbound->MoveTo (pnode->grantOutbound );
1981
1980
if (fOneShot )
@@ -1990,8 +1989,6 @@ bool CConnman::OpenNetworkConnection(const CAddress& addrConnect, bool fCountFai
1990
1989
LOCK (cs_vNodes);
1991
1990
vNodes.push_back (pnode);
1992
1991
}
1993
-
1994
- return true ;
1995
1992
}
1996
1993
1997
1994
void CConnman::ThreadMessageHandler ()
0 commit comments