summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-24 00:04:58 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-24 00:04:58 +0900
commit32a3c441af1f7554a5a8d2fbb3a4f742e741fc2b (patch)
tree915f37ba28dd4a1795b39f5d45190f29cf267ff4 /src
parent3b7566faf118510768d16912ecb47ce991495cdc (diff)
Fix bug: wrong parenthesis position in the condition
Diffstat (limited to 'src')
-rw-r--r--src/DHTGetPeersCommand.cc2
1 files changed, 1 insertions, 1 deletions
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)",