fix bug in disk_io_thread

This commit is contained in:
Arvid Norberg 2009-05-31 10:15:45 +00:00
parent 177a7e881c
commit d45e6cb118
1 changed files with 2 additions and 2 deletions

View File

@ -1104,9 +1104,9 @@ namespace libtorrent
, p, dont_flush_write_blocks) == 0) , p, dont_flush_write_blocks) == 0)
return -2; return -2;
int ret = read_into_piece(*p, block, 0, blocks_to_read, l); size = read_into_piece(*p, block, 0, blocks_to_read, l);
hit = false; hit = false;
if (ret < 0) return ret; if (size < 0) return size;
TORRENT_ASSERT(p->blocks[block]); TORRENT_ASSERT(p->blocks[block]);
} }