From f72a303b8deb702a2ea4f63280302f88741da581 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 14 Oct 2014 00:13:29 +0900 Subject: Add --bt-detach-seed-only option This option excludes seed only downloads when counting concurrent active downloads (-j option). This means that if -j3 is given and this option is turned on and 3 downloads are active and one of those enters seed mode, then it is excluded from active download count (thus it becomes 2), and the next download waiting in queue gets started. But be aware that seeding item is still recognized as active download in RPC method. --- src/OptionHandlerFactory.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/OptionHandlerFactory.cc') diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index f89a1c44..dec0624a 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1700,6 +1700,15 @@ std::vector OptionHandlerFactory::createOptionHandlers() #endif // ENABLE_BITTORRENT || ENABLE_METALINK // BitTorrent Specific Options #ifdef ENABLE_BITTORRENT + { + OptionHandler* op(new BooleanOptionHandler + (PREF_BT_DETACH_SEED_ONLY, + TEXT_BT_DETACH_SEED_ONLY, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_BITTORRENT); + handlers.push_back(op); + } { OptionHandler* op(new BooleanOptionHandler (PREF_BT_ENABLE_LPD, -- cgit