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>
|
2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed segmentation fault when GZipDecoder::decode() returns 0
|
Fixed segmentation fault when GZipDecoder::decode() returns 0
|
||||||
|
|
|
@ -172,22 +172,11 @@ bool DownloadCommand::executeInternal() {
|
||||||
!socket->wantRead() && !socket->wantWrite()) {
|
!socket->wantRead() && !socket->wantWrite()) {
|
||||||
segmentComplete = true;
|
segmentComplete = true;
|
||||||
}
|
}
|
||||||
} else if(!_transferEncodingDecoder.isNull() &&
|
} else if((_transferEncodingDecoder.isNull() ||
|
||||||
!_contentEncodingDecoder.isNull()) {
|
_transferEncodingDecoder->finished()) &&
|
||||||
if(_transferEncodingDecoder->finished() &&
|
(_contentEncodingDecoder.isNull() ||
|
||||||
_contentEncodingDecoder->finished()) {
|
_contentEncodingDecoder->finished())) {
|
||||||
segmentComplete = true;
|
segmentComplete = true;
|
||||||
}
|
|
||||||
} else if(!_transferEncodingDecoder.isNull() &&
|
|
||||||
_contentEncodingDecoder.isNull()) {
|
|
||||||
if(_transferEncodingDecoder->finished()) {
|
|
||||||
segmentComplete = true;
|
|
||||||
}
|
|
||||||
} else if(_transferEncodingDecoder.isNull() &&
|
|
||||||
!_contentEncodingDecoder.isNull()) {
|
|
||||||
if(_contentEncodingDecoder->finished()) {
|
|
||||||
segmentComplete = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!segmentComplete && bufSize == 0 &&
|
if(!segmentComplete && bufSize == 0 &&
|
||||||
|
|
Loading…
Reference in New Issue