forked from premiere/premiere-libtorrent
fixed bug when receiving a have message before having the metadata
This commit is contained in:
parent
a4651536c9
commit
90719bf77d
|
@ -86,6 +86,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* 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 python bindings build with disabled DHT support
|
||||||
* fixed BSD file allocation issue
|
* fixed BSD file allocation issue
|
||||||
* fixed bug in session::delete_files option to remove_torrent
|
* fixed bug in session::delete_files option to remove_torrent
|
||||||
|
|
|
@ -1638,7 +1638,7 @@ namespace libtorrent
|
||||||
|
|
||||||
if (is_disconnecting()) return;
|
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)
|
if (index < 65536)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue