#1548 Peers rapidly connect and reconnect after removing fast support.

This commit is contained in:
Mitchell Livingston 2008-12-02 00:37:10 +00:00
parent 1a3bb8f3cf
commit c2b6fde6dd
1 changed files with 1 additions and 0 deletions

View File

@ -1128,6 +1128,7 @@ messageLengthIsCorrect( const tr_peermsgs * msg,
case BT_HAVE:
case BT_SUGGEST:
return len == 5;
case BT_BITFIELD:
return len == ( msg->torrent->info.pieceCount + 7u ) / 8u + 1u;