summaryrefslogtreecommitdiff
path: root/src/UTMetadataPostDownloadHandler.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-24 16:42:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-11-24 16:42:55 +0000
commit3fa6ce55f4107ae79f108ec7ffbdbd9e26fca398 (patch)
tree4a94ba9655be57b9eeab57603a82a671a2c896ef /src/UTMetadataPostDownloadHandler.cc
parent656cbd16a0ca0a9d7066c0e0abd3c7bf5e72fc85 (diff)
2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that trackers in BitTorrent Magnet URI are not inherited to generated RequestGroup. * src/UTMetadataPostDownloadHandler.cc * test/UTMetadataPostDownloadHandlerTest.cc
Diffstat (limited to 'src/UTMetadataPostDownloadHandler.cc')
-rw-r--r--src/UTMetadataPostDownloadHandler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/UTMetadataPostDownloadHandler.cc b/src/UTMetadataPostDownloadHandler.cc
index 14f8ce6e..90ced69f 100644
--- a/src/UTMetadataPostDownloadHandler.cc
+++ b/src/UTMetadataPostDownloadHandler.cc
@@ -92,7 +92,8 @@ void UTMetadataPostDownloadHandler::getNextRequestGroups
newAttrs[bittorrent::INFO_HASH].s()) {
continue;
}
- if(!newAttrs.containsKey(bittorrent::ANNOUNCE_LIST)) {
+ assert(newAttrs[bittorrent::ANNOUNCE_LIST].isList());
+ if(newAttrs[bittorrent::ANNOUNCE_LIST].size() == 0) {
newAttrs[bittorrent::ANNOUNCE_LIST] =
attrs[bittorrent::ANNOUNCE_LIST];
}