|
@@ -491,9 +491,9 @@ void RequestGroup::createNextCommandWithAdj(std::deque<Command*>& commands,
|
|
} else {
|
|
} else {
|
|
numCommand = _numConcurrentCommand;
|
|
numCommand = _numConcurrentCommand;
|
|
}
|
|
}
|
|
- numCommand += numAdj;
|
|
|
|
numCommand = std::min(static_cast<int>(_downloadContext->getNumPieces()),
|
|
numCommand = std::min(static_cast<int>(_downloadContext->getNumPieces()),
|
|
numCommand);
|
|
numCommand);
|
|
|
|
+ numCommand += numAdj;
|
|
}
|
|
}
|
|
if(numCommand > 0) {
|
|
if(numCommand > 0) {
|
|
createNextCommand(commands, e, numCommand);
|
|
createNextCommand(commands, e, numCommand);
|