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
1 changed files with 2 additions and 2 deletions

View File

@ -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