forked from premiere/premiere-libtorrent
bugfix
This commit is contained in:
parent
7a9e7d112e
commit
5f6c12214b
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue