From 3b66a1364600dd3da94df1239dc1f34678918e75 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sat, 12 Jan 2013 10:56:29 -0800 Subject: [PATCH] Standalone fixes. --- src/cpp/ripple/ConnectionPool.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/ConnectionPool.cpp b/src/cpp/ripple/ConnectionPool.cpp index 097a393621..3bac3246bc 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";