From fcc9c496086d0a9683e7d282a0c67943249784d1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 25 Feb 2007 05:20:14 +0000 Subject: [PATCH] fixed issue with metadata-less torrents and their statistics updates --- src/peer_connection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 25b3a799c..3f50ca5d2 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1520,6 +1520,8 @@ namespace libtorrent } #endif + m_statistics.second_tick(tick_interval); + if (!t->valid_metadata()) return; // calculate the desired download queue size @@ -1583,8 +1585,6 @@ namespace libtorrent } } - m_statistics.second_tick(tick_interval); - // If the client sends more data // we send it data faster, otherwise, slower. // It will also depend on how much data the