2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Pool request when download finished.
	* src/DownloadCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-03-07 08:06:52 +00:00
parent 2cb0c8e69d
commit 5fb7197a08
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Pool request when download finished.
* src/DownloadCommand.cc
2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made 'fileIndex' parameter in aria2.changeUri XML-RPC method

View File

@ -269,6 +269,8 @@ void DownloadCommand::checkLowestDownloadSpeed() const
bool DownloadCommand::prepareForNextSegment() {
if(_requestGroup->downloadFinished()) {
// Remove in-flight request here.
_fileEntry->poolRequest(req);
// If this is a single file download, and file size becomes known
// just after downloading, set total length to FileEntry object
// here.