mirror of
https://github.com/aria2/aria2.git
synced 2025-02-01 11:21:58 +00:00
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
This commit is contained in:
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>
|
||||
|
||||
Fixed infinite loop bug in FTP when SIZE command failed.
|
||||
|
@ -491,9 +491,9 @@ void RequestGroup::createNextCommandWithAdj(std::deque<Command*>& commands,
|
||||
} else {
|
||||
numCommand = _numConcurrentCommand;
|
||||
}
|
||||
numCommand += numAdj;
|
||||
numCommand = std::min(static_cast<int>(_downloadContext->getNumPieces()),
|
||||
numCommand);
|
||||
numCommand += numAdj;
|
||||
}
|
||||
if(numCommand > 0) {
|
||||
createNextCommand(commands, e, numCommand);
|
||||
|
Loading…
x
Reference in New Issue
Block a user