From 28c334fb357a552659e14945d84c1b1c4ea5a84d Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 13 May 2009 23:02:08 +0000 Subject: [PATCH] web_peer_connection statistics fix --- src/web_peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web_peer_connection.cpp b/src/web_peer_connection.cpp index 6e11a7fa9..d214d2402 100644 --- a/src/web_peer_connection.cpp +++ b/src/web_peer_connection.cpp @@ -417,10 +417,10 @@ namespace libtorrent // this means we got a redirection request // look for the location header std::string location = m_parser.header("location"); + m_statistics.received_bytes(0, bytes_transferred); if (location.empty()) { - m_statistics.received_bytes(0, bytes_transferred); // we should not try this server again. t->remove_web_seed(m_url, web_seed_entry::url_seed); disconnect("got HTTP redirection status without location header", 2);