summaryrefslogtreecommitdiff
path: root/src/ActivePeerConnectionCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ActivePeerConnectionCommand.cc')
-rw-r--r--src/ActivePeerConnectionCommand.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ActivePeerConnectionCommand.cc b/src/ActivePeerConnectionCommand.cc
index 7b8fc871..ed66412a 100644
--- a/src/ActivePeerConnectionCommand.cc
+++ b/src/ActivePeerConnectionCommand.cc
@@ -79,7 +79,7 @@ bool ActivePeerConnectionCommand::execute() {
checkPoint.reset();
TransferStat tstat = peerStorage->calculateStat();
if(tstat.getDownloadSpeed() < _thresholdSpeed ||
- btRuntime->lessThanMinPeer()) {
+ btRuntime->lessThanMinPeers()) {
for(size_t numAdd = _numNewConnection;
numAdd > 0 && peerStorage->isPeerAvailable(); --numAdd) {
PeerHandle peer = peerStorage->getUnusedPeer();