mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 00:18:39 +00:00
storage fix
This commit is contained in:
parent
9ed93af6b2
commit
d55fff555c
1 changed files with 2 additions and 1 deletions
|
@ -1248,7 +1248,8 @@ namespace libtorrent
|
||||||
, block_size);
|
, block_size);
|
||||||
crc.update(&buf[0], block_size);
|
crc.update(&buf[0], block_size);
|
||||||
}
|
}
|
||||||
if (bi[num_blocks - 1].state == piece_picker::block_info::state_finished)
|
|
||||||
|
if (num_blocks > 0 && bi[num_blocks - 1].state == piece_picker::block_info::state_finished)
|
||||||
{
|
{
|
||||||
m_storage->read(
|
m_storage->read(
|
||||||
&buf[0]
|
&buf[0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue