DefaultPeerStorage::addPeer: Remove unnecessary '='

pull/43/head
Tatsuhiro Tsujikawa 2013-01-25 00:08:49 +09:00
parent 550ac8c074
commit de394bbf61
1 changed files with 1 additions and 1 deletions

View File

@ -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",