fixed assert when receiving invalid piece

This commit is contained in:
Arvid Norberg 2009-04-17 17:56:58 +00:00
parent 509c8ed402
commit dd67612e9b
1 changed files with 1 additions and 1 deletions

View File

@ -1178,12 +1178,12 @@ namespace libtorrent
// call this once, the first time the entire header
// has been received
start_receive_piece(p);
if (is_disconnecting()) return;
}
TORRENT_ASSERT(has_disk_receive_buffer() || packet_size() == header_size);
incoming_piece_fragment(piece_bytes);
if (is_disconnecting()) return;
if (!packet_finished()) return;
if (merkle && list_size > 0)