fix to announce with DHT for torrents without metadata

This commit is contained in:
Arvid Norberg 2008-08-29 22:58:47 +00:00
parent 92ed7fb364
commit aedc92cb24
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ namespace libtorrent
if (m_ses.m_listen_sockets.empty()) return false;
if (!m_ses.m_dht) return false;
if (!m_files_checked) return false;
if (m_torrent_file->is_valid() && !m_files_checked) return false;
// don't announce private torrents
if (m_torrent_file->is_valid() && m_torrent_file->priv()) return false;