Explorar o código

Fix bug: wrong parenthesis position in the condition

Tatsuhiro Tsujikawa %!s(int64=12) %!d(string=hai) anos
pai
achega
32a3c441af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)",