From b3e8d86e0cad24afeaff2719bcd5ad631c036a98 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 14 Aug 2012 05:23:20 +0000 Subject: [PATCH] proper web seed stats fix --- src/web_peer_connection.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index bb9e0c8e8..acc86732c 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -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);