summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-10 00:12:53 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-10 00:15:30 +0900
commit8e63bad2da930c80d8f049376e61bd7152038ced (patch)
tree75ce1cfcf4da799709f01d6773d40182a2e1da9c /src/OptionHandlerFactory.cc
parent794f7b7014bc7e28c3436a7923d66365f238ee12 (diff)
Added --save-session-interval option
--save-session-interval option saves error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index 7dfa7dab..c6476197 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -729,6 +729,15 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
handlers.push_back(op);
}
{
+ OptionHandler* op(new NumberOptionHandler
+ (PREF_SAVE_SESSION_INTERVAL,
+ TEXT_SAVE_SESSION_INTERVAL,
+ "0",
+ 0));
+ op->addTag(TAG_ADVANCED);
+ handlers.push_back(op);
+ }
+ {
OptionHandler* op(new BooleanOptionHandler
(PREF_SELECT_LEAST_USED_HOST,
NO_DESCRIPTION,