fixed incorrect failure test in storage. Affected reading when not coalescing reads

This commit is contained in:
Arvid Norberg 2009-01-02 10:31:26 +00:00
parent a14421bde5
commit 3bf9fa239d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}