diff --git a/ChangeLog b/ChangeLog index d9ecae9f2..8e4e117a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ * fix uTP edge case where udp socket buffer fills up * fix nagle implementation in uTP + * take torrent_handle::query_pieces into account in torrent_handle::statue() * honor trackers responding with 410 * fixed merkle tree torrent creation bug * fixed crash with empty url-lists in torrent files diff --git a/src/torrent.cpp b/src/torrent.cpp index 94f794846..6b2ecfb7c 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -8647,7 +8647,7 @@ namespace libtorrent #endif } - if (has_picker()) + if (has_picker() && (flags & torrent_handle::query_pieces)) { st->sparse_regions = m_picker->sparse_regions(); int num_pieces = m_picker->num_pieces();