diff options
Diffstat (limited to 'src/AutoSaveCommand.cc')
| -rw-r--r-- | src/AutoSaveCommand.cc | 7 |
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 |
