mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
fix: return correct bitfield when fully downloaded (#2799)
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -176,7 +176,7 @@ std::vector<uint8_t> tr_bitfield::raw() const
|
||||
|
||||
if (hasAll())
|
||||
{
|
||||
setAllTrue(std::data(raw), std::size(raw));
|
||||
setAllTrue(std::data(raw), bit_count_);
|
||||
}
|
||||
|
||||
return raw;
|
||||
|
||||
Reference in New Issue
Block a user