From 32a3c441af1f7554a5a8d2fbb3a4f742e741fc2b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 24 Jan 2013 00:04:58 +0900 Subject: [PATCH] Fix bug: wrong parenthesis position in the condition --- src/DHTGetPeersCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DHTGetPeersCommand.cc b/src/DHTGetPeersCommand.cc index 0bc6cc44..01db7c79 100644 --- a/src/DHTGetPeersCommand.cc +++ b/src/DHTGetPeersCommand.cc @@ -112,7 +112,7 @@ bool DHTGetPeersCommand::execute() lastGetPeerTime_ = global::wallclock(); if(numRetry_ < MAX_RETRIES && (btRuntime_->getMaxPeers() == 0 || - btRuntime_->getMaxPeers()) > peerStorage_->countPeer()) { + btRuntime_->getMaxPeers() > peerStorage_->countPeer())) { ++numRetry_; A2_LOG_DEBUG(fmt("Too few peers. peers=%lu, max_peers=%d." " Try again(%d)",