proper web seed stats fix
This commit is contained in:
parent
9bca8ec3f2
commit
b3e8d86e0c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue