mirror of https://github.com/aria2/aria2
DefaultPeerStorage::addPeer: Remove unnecessary '='
parent
550ac8c074
commit
de394bbf61
|
@ -138,7 +138,7 @@ void DefaultPeerStorage::addPeer(const std::vector<SharedHandle<Peer> >& peers)
|
|||
++added;
|
||||
}
|
||||
const size_t peerListSize = peers_.size();
|
||||
if(peerListSize >= maxPeerListSize_) {
|
||||
if(peerListSize > maxPeerListSize_) {
|
||||
deleteUnusedPeer(peerListSize-maxPeerListSize_);
|
||||
}
|
||||
A2_LOG_DEBUG(fmt("Now peer list contains %lu peers",
|
||||
|
|
Loading…
Reference in New Issue