mirror of https://github.com/aria2/aria2
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Use downloadresultcode::IN_PROGRESS for RequestGroup::SHUTDOWN_SIGNAL. * src/RequestGroup.ccpull/1/head
parent
1c8b61cad4
commit
1986f45d4a
|
@ -1,3 +1,9 @@
|
||||||
|
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Use downloadresultcode::IN_PROGRESS for
|
||||||
|
RequestGroup::SHUTDOWN_SIGNAL.
|
||||||
|
* src/RequestGroup.cc
|
||||||
|
|
||||||
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Call requestForceHalt() instead of _requestGroupMan->forceHalt().
|
Call requestForceHalt() instead of _requestGroupMan->forceHalt().
|
||||||
|
|
|
@ -175,7 +175,8 @@ downloadresultcode::RESULT RequestGroup::downloadResult() const
|
||||||
return downloadresultcode::FINISHED;
|
return downloadresultcode::FINISHED;
|
||||||
else {
|
else {
|
||||||
if (_lastUriResult.isNull()) {
|
if (_lastUriResult.isNull()) {
|
||||||
if(_haltReason == RequestGroup::USER_REQUEST) {
|
if(_haltReason == RequestGroup::USER_REQUEST ||
|
||||||
|
_haltReason == RequestGroup::SHUTDOWN_SIGNAL) {
|
||||||
return downloadresultcode::IN_PROGRESS;
|
return downloadresultcode::IN_PROGRESS;
|
||||||
} else {
|
} else {
|
||||||
return downloadresultcode::UNKNOWN_ERROR;
|
return downloadresultcode::UNKNOWN_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue