summaryrefslogtreecommitdiff
path: root/src/AutoSaveCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 14:15:10 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-09 14:15:10 +0000
commitb357fd39fcc9b05a0d7ef87b1594c0ebd67cfdfe (patch)
treeec9faa1890026d59506b391f2f0a638982cb5dc1 /src/AutoSaveCommand.cc
parent43460a347f1bef41f83ad085502e46b927b35554 (diff)
2010-06-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made protected member variable private. Added accessor funcs. * src/AutoSaveCommand.cc * src/BtStopDownloadCommand.cc * src/DHTAutoSaveCommand.cc * src/DHTBucketRefreshCommand.cc * src/DHTPeerAnnounceCommand.cc * src/DHTTokenUpdateCommand.cc * src/HaveEraseCommand.cc * src/TimeBasedCommand.h * src/TimedHaltCommand.cc
Diffstat (limited to 'src/AutoSaveCommand.cc')
-rw-r--r--src/AutoSaveCommand.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/AutoSaveCommand.cc b/src/AutoSaveCommand.cc
index 2fd7001d..9784f948 100644
--- a/src/AutoSaveCommand.cc
+++ b/src/AutoSaveCommand.cc
@@ -49,14 +49,15 @@ AutoSaveCommand::~AutoSaveCommand() {}
void AutoSaveCommand::preProcess()
{
- if(_e->getRequestGroupMan()->downloadFinished() || _e->isHaltRequested()) {
- _exit = true;
+ if(getDownloadEngine()->getRequestGroupMan()->downloadFinished() ||
+ getDownloadEngine()->isHaltRequested()) {
+ enableExit();
}
}
void AutoSaveCommand::process()
{
- _e->getRequestGroupMan()->save();
+ getDownloadEngine()->getRequestGroupMan()->save();
}
} // namespace aria2