mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix scanning on scan failure.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user