소스 검색

Fix bug: wrong parenthesis position in the condition

Tatsuhiro Tsujikawa 12 년 전
부모
커밋
32a3c441af
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/DHTGetPeersCommand.cc

+ 1 - 1
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)",