From b4b7c50f6b0eee7ad9b80f0429fd489ecd0e1de4 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)); }