diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-24 16:42:55 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-11-24 16:42:55 +0000 |
| commit | 3fa6ce55f4107ae79f108ec7ffbdbd9e26fca398 (patch) | |
| tree | 4a94ba9655be57b9eeab57603a82a671a2c896ef /src | |
| parent | 656cbd16a0ca0a9d7066c0e0abd3c7bf5e72fc85 (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')
| -rw-r--r-- | src/UTMetadataPostDownloadHandler.cc | 3 |
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]; } |
