mirror of https://github.com/aria2/aria2
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Reverted previous change and fixed it in a right way. * src/HttpDownloadCommand.ccpull/1/head
parent
3886919101
commit
332a5bd4a1
|
@ -1,3 +1,8 @@
|
||||||
|
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Reverted previous change and fixed it in a right way.
|
||||||
|
* src/HttpDownloadCommand.cc
|
||||||
|
|
||||||
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Make sure that all decoders are finished to pool socket
|
Make sure that all decoders are finished to pool socket
|
||||||
|
|
|
@ -89,9 +89,10 @@ bool HttpDownloadCommand::prepareForNextSegment() {
|
||||||
(getRequest()->isKeepAliveEnabled() &&
|
(getRequest()->isKeepAliveEnabled() &&
|
||||||
(
|
(
|
||||||
// Make sure that all decoders are finished to pool socket
|
// Make sure that all decoders are finished to pool socket
|
||||||
((getTransferEncodingDecoder().isNull() ||
|
((!getTransferEncodingDecoder().isNull() &&
|
||||||
getTransferEncodingDecoder()->finished()) &&
|
getTransferEncodingDecoder()->finished()) ||
|
||||||
(getContentEncodingDecoder().isNull() ||
|
(getTransferEncodingDecoder().isNull() &&
|
||||||
|
!getContentEncodingDecoder().isNull() &&
|
||||||
getContentEncodingDecoder()->finished())) ||
|
getContentEncodingDecoder()->finished())) ||
|
||||||
getRequestEndOffset() ==
|
getRequestEndOffset() ==
|
||||||
getFileEntry()->gtoloff(getSegments().front()->getPositionToWrite())
|
getFileEntry()->gtoloff(getSegments().front()->getPositionToWrite())
|
||||||
|
|
Loading…
Reference in New Issue