diff --git a/src/cpp/ripple/ConnectionPool.cpp b/src/cpp/ripple/ConnectionPool.cpp index 097a39362..3bac3246b 100644 --- a/src/cpp/ripple/ConnectionPool.cpp +++ b/src/cpp/ripple/ConnectionPool.cpp @@ -284,9 +284,6 @@ void ConnectionPool::relayMessageTo(const std::set& fromPeers, const Pac // Requires sane IP and port. void ConnectionPool::connectTo(const std::string& strIp, int iPort) { - if (theConfig.RUN_STANDALONE || (iPort < 0)) - return; - { Database* db = theApp->getWalletDB()->getDB(); ScopedLock sl(theApp->getWalletDB()->getDBLock()); @@ -649,7 +646,11 @@ void ConnectionPool::scanHandler(const boost::system::error_code& ecResult) // Scan ips as per db entries. void ConnectionPool::scanRefresh() { - if (mScanning) + if (theConfig.RUN_STANDALONE) + { + nothing(); + } + else if (mScanning) { // Currently scanning, will scan again after completion. cLog(lsTRACE) << "Pool: Scan: already scanning";