mirror of https://github.com/aria2/aria2
2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that commands are created more than the number of pieces. * src/RequestGroup.ccpull/1/head
parent
01ae2bc912
commit
58ad225655
|
@ -1,3 +1,8 @@
|
||||||
|
2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Fixed the bug that commands are created more than the number of pieces.
|
||||||
|
* src/RequestGroup.cc
|
||||||
|
|
||||||
2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Fixed infinite loop bug in FTP when SIZE command failed.
|
Fixed infinite loop bug in FTP when SIZE command failed.
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue