mirror of
https://github.com/aria2/aria2.git
synced 2026-04-11 23:39:05 +00:00
Fix bug: wrong parenthesis position in the condition
This commit is contained in:
@@ -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)",
|
||||
|
||||
Reference in New Issue
Block a user