diff options
Diffstat (limited to 'src/UTMetadataPostDownloadHandler.cc')
| -rw-r--r-- | src/UTMetadataPostDownloadHandler.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/UTMetadataPostDownloadHandler.cc b/src/UTMetadataPostDownloadHandler.cc index 82084243..58e3002a 100644 --- a/src/UTMetadataPostDownloadHandler.cc +++ b/src/UTMetadataPostDownloadHandler.cc @@ -59,8 +59,7 @@ bool UTMetadataPostDownloadHandler::Criteria::match const std::shared_ptr<DownloadContext>& dctx = requestGroup->getDownloadContext(); if(dctx->hasAttribute(CTX_ATTR_BT)) { - auto attrs = bittorrent::getTorrentAttrs(dctx); - if(attrs->metadata.empty()) { + if(bittorrent::getTorrentAttrs(dctx)->metadata.empty()) { return true; } } |
