summaryrefslogtreecommitdiff
path: root/src/AutoSaveCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/AutoSaveCommand.cc')
-rw-r--r--src/AutoSaveCommand.cc9
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;
}
}