2010-06-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Use downloadresultcode::IN_PROGRESS for
	RequestGroup::SHUTDOWN_SIGNAL.
	* src/RequestGroup.cc
pull/1/head
Tatsuhiro Tsujikawa 2010-06-03 11:51:06 +00:00
parent 1c8b61cad4
commit 1986f45d4a
2 changed files with 8 additions and 1 deletions

View File

@ -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().

View File

@ -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;