read cache fix

This commit is contained in:
Arvid Norberg 2008-02-22 08:22:57 +00:00
parent 0e3eddf8e8
commit 19462007d1
1 changed files with 2 additions and 1 deletions

View File

@ -592,7 +592,8 @@ namespace libtorrent
if (!make_room(end_block - block, l)) return -2;
ret = read_into_piece(*p, block, l);
hit = false;
if (ret == -1) return ret;
if (ret < 0) return ret;
TORRENT_ASSERT(p->blocks[block]);
}
p->last_use = time_now();