2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Updated doc.
	* src/DownloadCommand.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-01-06 12:52:14 +00:00
parent 4db349c1f3
commit f6a3ca0b1e
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Updated doc.
* src/DownloadCommand.cc
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80

View File

@ -183,6 +183,8 @@ bool DownloadCommand::executeInternal() {
}
} else if(!_transferEncodingDecoder.isNull() &&
(segment->complete() || segment->getPositionToWrite() == _fileEntry->getLastOffset())) {
// In this case, transferEncodingDecoder is used and
// Content-Length is known.
segmentPartComplete = true;
} else if((_transferEncodingDecoder.isNull() ||
_transferEncodingDecoder->finished()) &&
@ -230,7 +232,7 @@ bool DownloadCommand::executeInternal() {
_requestGroup->getSegmentMan()->completeSegment(cuid, segment);
#endif // !ENABLE_MESSAGE_DIGEST
} else {
// If segment is not cacnel here, in the next pipelining
// If segment is not canceled here, in the next pipelining
// request, aria2 requests bad range
// [FileEntry->getLastOffset(), FileEntry->getLastOffset())
_requestGroup->getSegmentMan()->cancelSegment(cuid, segment);