From e58f19debcd095313bfd19d4809d7ec04eee4a9e Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Tue, 8 May 2012 16:21:45 -0700 Subject: [PATCH] Fix scanning on scan failure. --- src/ConnectionPool.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ConnectionPool.cpp b/src/ConnectionPool.cpp index fe94c84ba9..74c5c0019f 100644 --- a/src/ConnectionPool.cpp +++ b/src/ConnectionPool.cpp @@ -297,9 +297,12 @@ void ConnectionPool::peerDisconnected(Peer::pointer peer, const ipPort& ipPeer, void ConnectionPool::peerFailed(const std::string& strIp, int iPort) { - if (bScanning && !mScanIp.compare(strIp), mScanPort == iPort) + // If the fail was our scan, we are no longer scanning. + if (bScanning && !mScanIp.compare(strIp) && mScanPort == iPort) { bScanning = false; + + // Look for more to scan. scanRefresh(); } }