From 2c3e4703fb41e8822743d1e010ef6d0c5d321af1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 21 Jan 2013 16:01:48 +0000 Subject: [PATCH] merged torrent_handle::status fix from RC_0_16 --- ChangeLog | 1 + src/torrent.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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();