return vector of correct size if internal file_progress is empty
This commit is contained in:
parent
393e705d5c
commit
8cc88a8921
|
@ -10220,7 +10220,7 @@ namespace libtorrent
|
|||
return;
|
||||
}
|
||||
|
||||
if (num_have() == 0)
|
||||
if (num_have() == 0 || m_file_progress.empty())
|
||||
{
|
||||
// if we don't have any pieces, just return zeroes
|
||||
fp.clear();
|
||||
|
|
Loading…
Reference in New Issue