summaryrefslogtreecommitdiff
path: root/src/FileAllocationCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 16:17:16 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-04-11 16:17:16 +0000
commit70664af0adc2426f950d51176dba9a7490d2ca23 (patch)
tree2621e1b3404c81460c7330a1c87e23639ff235b7 /src/FileAllocationCommand.cc
parent6e9a25798c88ff19a54e89293c634d6e480d2c8f (diff)
2010-04-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that hash check hangs when aria2.pause is issued while aria2 is checking piece hashes. Fixed the bug that the download is paused after file allocation completion even if aria2.pause is issued during file allocation. * src/CheckIntegrityCommand.cc * src/FileAllocationCommand.cc
Diffstat (limited to 'src/FileAllocationCommand.cc')
-rw-r--r--src/FileAllocationCommand.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/FileAllocationCommand.cc b/src/FileAllocationCommand.cc
index f3ca426a..7046e7cf 100644
--- a/src/FileAllocationCommand.cc
+++ b/src/FileAllocationCommand.cc
@@ -59,7 +59,8 @@ FileAllocationCommand::~FileAllocationCommand() {}
bool FileAllocationCommand::executeInternal()
{
- if(_e->isHaltRequested()) {
+ if(_requestGroup->isHaltRequested()) {
+ _e->_fileAllocationMan->dropPickedEntry();
return true;
}
_fileAllocationEntry->allocateChunk();