summaryrefslogtreecommitdiff
path: root/src/BtFileAllocationEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-10-14 00:13:29 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2014-10-14 00:13:29 +0900
commitf72a303b8deb702a2ea4f63280302f88741da581 (patch)
tree9df1a81101fe93b1eb9b545559f0148dde504591 /src/BtFileAllocationEntry.cc
parent09d79565376c03b3e735793703c1dc185d413c31 (diff)
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.
Diffstat (limited to 'src/BtFileAllocationEntry.cc')
-rw-r--r--src/BtFileAllocationEntry.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/BtFileAllocationEntry.cc b/src/BtFileAllocationEntry.cc
index 4b1f4147..5063f989 100644
--- a/src/BtFileAllocationEntry.cc
+++ b/src/BtFileAllocationEntry.cc
@@ -89,6 +89,7 @@ void BtFileAllocationEntry::prepareForNextAction
diskAdaptor->openFile();
}
#endif // __MINGW32__
+ getRequestGroup()->enableSeedOnly();
}
}