From 8a2d110ef6955fc0b3b99a3272cd7cffe99cee11 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 26 Nov 2008 09:14:19 +0000 Subject: [PATCH] lt sync 2987 --- libtorrent/src/ut_metadata.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libtorrent/src/ut_metadata.cpp b/libtorrent/src/ut_metadata.cpp index 848c3795d..d8416e14b 100644 --- a/libtorrent/src/ut_metadata.cpp +++ b/libtorrent/src/ut_metadata.cpp @@ -451,6 +451,8 @@ namespace libtorrent boost::shared_ptr create_ut_metadata_plugin(torrent* t, void*) { + // don't add this extension if the torrent is private + if (t->valid_metadata() && t->torrent_file().priv()) return boost::shared_ptr(); return boost::shared_ptr(new ut_metadata_plugin(*t)); }