put the private flag in the right place. Fixes #303

This commit is contained in:
Arvid Norberg 2008-04-09 08:10:44 +00:00
parent 4eeb15c1df
commit cc5dc24ca1
1 changed files with 2 additions and 2 deletions

View File

@ -705,6 +705,8 @@ namespace libtorrent
if (!info.find_key("name"))
info["name"] = m_name;
if (m_private) info["private"] = 1;
if (!m_multifile)
{
info["length"] = m_files.front().size;
@ -765,8 +767,6 @@ namespace libtorrent
entry dict;
if (m_private) dict["private"] = 1;
if (!m_urls.empty())
dict["announce"] = m_urls.front().url;