fixed incorrect failure test in storage. Affected reading when not coalescing reads
This commit is contained in:
parent
a14421bde5
commit
3bf9fa239d
|
@ -467,7 +467,7 @@ namespace libtorrent
|
|||
{
|
||||
l.unlock();
|
||||
ret += p.storage->read_impl(p.blocks[i], p.piece, piece_offset, block_size);
|
||||
if (!p.storage->error()) { return -1; }
|
||||
if (p.storage->error()) { return -1; }
|
||||
l.lock();
|
||||
++m_cache_stats.reads;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue