proper web seed stats fix

This commit is contained in:
Arvid Norberg 2012-08-14 05:23:20 +00:00
parent 9bca8ec3f2
commit b3e8d86e0c
1 changed files with 0 additions and 4 deletions

View File

@ -473,7 +473,6 @@ namespace libtorrent
// add the redirected url and remove the current one
if (!single_file_request)
{
m_statistics.received_bytes(0, bytes_transferred);
TORRENT_ASSERT(!m_file_requests.empty());
int file_index = m_file_requests.front();
@ -497,9 +496,6 @@ namespace libtorrent
}
location.resize(i);
}
// apparently web servers sometimes include a
// body in their redirects
received_bytes(0, bytes_transferred);
t->add_web_seed(location, web_seed_entry::url_seed, m_external_auth, m_extra_headers);
t->remove_web_seed(this);
disconnect(errors::redirecting, 2);