summaryrefslogtreecommitdiff
path: root/src/UTMetadataPostDownloadHandler.cc
diff options
context:
space:
mode:
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];
}