This commit is contained in:
Arvid Norberg 2007-01-08 15:29:17 +00:00
parent 7a9e7d112e
commit 5f6c12214b
1 changed files with 13 additions and 10 deletions

View File

@ -417,6 +417,8 @@ namespace libtorrent
http_body.begin += r.length;
}
if (!m_requests.empty())
{
range_overlaps_request = in_range.start + in_range.length
> m_requests.front().start + int(m_piece.size());
@ -429,6 +431,7 @@ namespace libtorrent
std::copy(http_body.begin, http_body.begin + copy_size, std::back_inserter(m_piece));
http_body.begin += copy_size;
}
}
if (m_parser.finished())
{