forked from premiere/premiere-libtorrent
fix bitfield assert
This commit is contained in:
parent
91ecbb4b23
commit
44735a425f
|
@ -1342,6 +1342,9 @@ namespace libtorrent
|
|||
else if (t->num_pieces() == 0)
|
||||
{
|
||||
// don't send a bitfield if we don't have any pieces
|
||||
#ifndef NDEBUG
|
||||
m_sent_bitfield = true;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue