fixed issue with metadata-less torrents and their statistics updates

This commit is contained in:
Arvid Norberg
2007-02-25 05:20:14 +00:00
parent f6c7a87fff
commit fcc9c49608

View File

@@ -1520,6 +1520,8 @@ namespace libtorrent
} }
#endif #endif
m_statistics.second_tick(tick_interval);
if (!t->valid_metadata()) return; if (!t->valid_metadata()) return;
// calculate the desired download queue size // calculate the desired download queue size
@@ -1583,8 +1585,6 @@ namespace libtorrent
} }
} }
m_statistics.second_tick(tick_interval);
// If the client sends more data // If the client sends more data
// we send it data faster, otherwise, slower. // we send it data faster, otherwise, slower.
// It will also depend on how much data the // It will also depend on how much data the