summaryrefslogtreecommitdiff
path: root/src/BtPostDownloadHandler.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-05 13:55:59 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2016-03-05 14:20:42 +0900
commit21754fa103647395b3eeb100506ce1b12aaed60a (patch)
tree348da82a87d3ab98af314ea2ccfd4341435f1f25 /src/BtPostDownloadHandler.cc
parent74811ddaff123e331368f69d93de4c9741f82fee (diff)
Add following to aria2.tellStatus response key as reverse link for followedBy
Diffstat (limited to 'src/BtPostDownloadHandler.cc')
-rw-r--r--src/BtPostDownloadHandler.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BtPostDownloadHandler.cc b/src/BtPostDownloadHandler.cc
index a6c40833..493b69c9 100644
--- a/src/BtPostDownloadHandler.cc
+++ b/src/BtPostDownloadHandler.cc
@@ -104,6 +104,9 @@ void BtPostDownloadHandler::getNextRequestGroups(
std::vector<std::string>(), "",
torrent.get());
requestGroup->followedBy(std::begin(newRgs), std::end(newRgs));
+ for (auto& rg : newRgs) {
+ rg->following(requestGroup->getGID());
+ }
auto mi = createMetadataInfoFromFirstFileEntry(
requestGroup->getGroupId(), requestGroup->getDownloadContext());
if (mi) {