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