chore: revert 2f677aebb
assertion
This commit is contained in:
parent
4177e286a1
commit
f1a028bb84
|
@ -1690,13 +1690,6 @@ static ReadState readBtMessage(tr_peerMsgsImpl* msgs, struct evbuffer* inbuf, si
|
||||||
|
|
||||||
case BtPeerMsgs::Bitfield:
|
case BtPeerMsgs::Bitfield:
|
||||||
{
|
{
|
||||||
TR_ASSERT_MSG(
|
|
||||||
!msgs->torrent->hasMetainfo() || msglen == msgs->torrent->pieceCount() / 8,
|
|
||||||
"pieceCount:%zu msglen:%zu peer_id:%s",
|
|
||||||
size_t(msgs->torrent->pieceCount()),
|
|
||||||
size_t(msglen),
|
|
||||||
msgs->client.c_str());
|
|
||||||
|
|
||||||
auto* const tmp = tr_new(uint8_t, msglen);
|
auto* const tmp = tr_new(uint8_t, msglen);
|
||||||
logtrace(msgs, "got a bitfield");
|
logtrace(msgs, "got a bitfield");
|
||||||
tr_peerIoReadBytes(msgs->io, inbuf, tmp, msglen);
|
tr_peerIoReadBytes(msgs->io, inbuf, tmp, msglen);
|
||||||
|
|
Loading…
Reference in New Issue