tracker fixes for trackerless torrents

This commit is contained in:
Arvid Norberg
2007-02-21 17:15:47 +00:00
parent 11b44fd286
commit b0ae8d3a14
4 changed files with 9 additions and 11 deletions

View File

@@ -1077,7 +1077,7 @@ namespace libtorrent { namespace detail
// or if the torrent itself thinks we should request. Do not build
// a request in case the torrent doesn't have any trackers
if ((!i->second->is_paused() || i->second->should_request())
&& !i->second->torrent_file().trackers().empty())
&& !i->second->trackers().empty())
{
tracker_request req = i->second->generate_tracker_request();
req.listen_port = m_listen_interface.port();