forked from premiere/premiere-libtorrent
Fixed bug in on_bitfield. Fixes #342
This commit is contained in:
parent
e0987022cc
commit
f12e1d26b7
|
@ -938,7 +938,7 @@ namespace libtorrent
|
||||||
buffer::const_interval recv_buffer = receive_buffer();
|
buffer::const_interval recv_buffer = receive_buffer();
|
||||||
|
|
||||||
bitfield bits;
|
bitfield bits;
|
||||||
bits.borrow_bytes((char*)recv_buffer.begin
|
bits.borrow_bytes((char*)recv_buffer.begin + 1
|
||||||
, t->valid_metadata()?get_bitfield().size():(packet_size()-1)*8);
|
, t->valid_metadata()?get_bitfield().size():(packet_size()-1)*8);
|
||||||
|
|
||||||
incoming_bitfield(bits);
|
incoming_bitfield(bits);
|
||||||
|
|
Loading…
Reference in New Issue