diff options
Diffstat (limited to 'src/AutoSaveCommand.cc')
| -rw-r--r-- | src/AutoSaveCommand.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/AutoSaveCommand.cc b/src/AutoSaveCommand.cc index a894ac7e..238eb655 100644 --- a/src/AutoSaveCommand.cc +++ b/src/AutoSaveCommand.cc @@ -33,10 +33,17 @@ */ /* copyright --> */ #include "AutoSaveCommand.h" +#include "DownloadEngine.h" +#include "RequestGroupMan.h" + +AutoSaveCommand::AutoSaveCommand(int32_t cuid, DownloadEngine* e, int32_t interval): + TimeBasedCommand(cuid, e, interval) {} + +AutoSaveCommand::~AutoSaveCommand() {} void AutoSaveCommand::preProcess() { - if(_e->_requestGroupMan->downloadFinished()) { + if(_e->_requestGroupMan->downloadFinished() || _e->isHaltRequested()) { _exit = true; } } |
