mirror of https://github.com/aria2/aria2
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Code cleanup * src/DownloadCommand.ccpull/1/head
parent
65a358c68b
commit
a883a4aecc
|
@ -1,3 +1,8 @@
|
|||
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Code cleanup
|
||||
* src/DownloadCommand.cc
|
||||
|
||||
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed segmentation fault when GZipDecoder::decode() returns 0
|
||||
|
|
|
@ -172,22 +172,11 @@ bool DownloadCommand::executeInternal() {
|
|||
!socket->wantRead() && !socket->wantWrite()) {
|
||||
segmentComplete = true;
|
||||
}
|
||||
} else if(!_transferEncodingDecoder.isNull() &&
|
||||
!_contentEncodingDecoder.isNull()) {
|
||||
if(_transferEncodingDecoder->finished() &&
|
||||
_contentEncodingDecoder->finished()) {
|
||||
segmentComplete = true;
|
||||
}
|
||||
} else if(!_transferEncodingDecoder.isNull() &&
|
||||
_contentEncodingDecoder.isNull()) {
|
||||
if(_transferEncodingDecoder->finished()) {
|
||||
segmentComplete = true;
|
||||
}
|
||||
} else if(_transferEncodingDecoder.isNull() &&
|
||||
!_contentEncodingDecoder.isNull()) {
|
||||
if(_contentEncodingDecoder->finished()) {
|
||||
segmentComplete = true;
|
||||
}
|
||||
} else if((_transferEncodingDecoder.isNull() ||
|
||||
_transferEncodingDecoder->finished()) &&
|
||||
(_contentEncodingDecoder.isNull() ||
|
||||
_contentEncodingDecoder->finished())) {
|
||||
segmentComplete = true;
|
||||
}
|
||||
|
||||
if(!segmentComplete && bufSize == 0 &&
|
||||
|
|
Loading…
Reference in New Issue