fixed bug when receiving a have message before having the metadata

This commit is contained in:
Arvid Norberg 2011-04-29 02:45:02 +00:00
parent a4651536c9
commit 90719bf77d
2 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@
incoming connection
* added more detailed instrumentation of the disk I/O thread
* fixed bug when receiving a have message before having the metadata
* fixed python bindings build with disabled DHT support
* fixed BSD file allocation issue
* fixed bug in session::delete_files option to remove_torrent

View File

@ -1638,7 +1638,7 @@ namespace libtorrent
if (is_disconnecting()) return;
if (!t->valid_metadata() && index > int(m_have_piece.size()))
if (!t->valid_metadata() && index >= int(m_have_piece.size()))
{
if (index < 65536)
{