summaryrefslogtreecommitdiff
path: root/src/HttpDownloadCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpDownloadCommand.cc')
-rw-r--r--src/HttpDownloadCommand.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HttpDownloadCommand.cc b/src/HttpDownloadCommand.cc
index 9e4798e4..74c49f58 100644
--- a/src/HttpDownloadCommand.cc
+++ b/src/HttpDownloadCommand.cc
@@ -88,10 +88,10 @@ bool HttpDownloadCommand::prepareForNextSegment() {
if(getRequest()->isPipeliningEnabled() ||
(getRequest()->isKeepAliveEnabled() &&
(
- // TODO make sure that all decoder is finished to pool socket
- ((!getTransferEncodingDecoder().isNull() &&
- getTransferEncodingDecoder()->finished()) ||
- (!getContentEncodingDecoder().isNull() &&
+ // Make sure that all decoders are finished to pool socket
+ ((getTransferEncodingDecoder().isNull() ||
+ getTransferEncodingDecoder()->finished()) &&
+ (getContentEncodingDecoder().isNull() ||
getContentEncodingDecoder()->finished())) ||
getRequestEndOffset() ==
getFileEntry()->gtoloff(getSegments().front()->getPositionToWrite())