added the ability to get scrape data from the tracker announce reply

This commit is contained in:
Arvid Norberg
2005-02-21 13:59:24 +00:00
parent d0b9fe8778
commit 782a3cfdc6
10 changed files with 116 additions and 2402 deletions

View File

@@ -132,8 +132,7 @@ namespace libtorrent { namespace detail
if (!t->abort)
{
boost::mutex::scoped_lock l(m_ses.m_mutex);
m_ses.m_torrents.insert(
std::make_pair(t->info_hash, t->torrent_ptr)).first;
m_ses.m_torrents.insert(std::make_pair(t->info_hash, t->torrent_ptr));
m_torrents.pop_front();
if (t->torrent_ptr->is_seed() && m_ses.m_alerts.should_post(alert::info))
{