forked from premiere/premiere-libtorrent
fix some invariant check failures in metadata transfer edge cases
This commit is contained in:
parent
c384d00dbf
commit
a31134d4a4
|
@ -1617,6 +1617,7 @@ namespace libtorrent
|
|||
if (extended_id == 0)
|
||||
{
|
||||
on_extended_handshake();
|
||||
disconnect_if_redundant();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -829,6 +829,9 @@ namespace libtorrent
|
|||
on_metadata();
|
||||
if (m_disconnecting) return;
|
||||
|
||||
disconnect_if_redundant();
|
||||
if (m_disconnecting) return;
|
||||
|
||||
// let the torrent know which pieces the
|
||||
// peer has
|
||||
// if we're a seed, we don't keep track of piece availability
|
||||
|
|
Loading…
Reference in New Issue