mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 11:45:44 +00:00
storage fix
This commit is contained in:
parent
9ed93af6b2
commit
d55fff555c
@ -1248,7 +1248,8 @@ namespace libtorrent
|
||||
, 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(
|
||||
&buf[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user