From 31d34fec416494ffa58a6a27b2b8ffc54c624c76 Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 22 Oct 2016 11:08:19 -0400 Subject: [PATCH] fix issue in previous block_cache patch --- src/block_cache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/block_cache.cpp b/src/block_cache.cpp index 74abdedb1..8ea0b853c 100644 --- a/src/block_cache.cpp +++ b/src/block_cache.cpp @@ -932,6 +932,8 @@ bool block_cache::evict_piece(cached_piece_entry* pe, tailqueue& jo if (pe->ok_to_evict(true)) { + pe->hash.reset(); + // append will move the items from pe->jobs onto the end of jobs jobs.append(pe->jobs); TORRENT_ASSERT(pe->jobs.size() == 0);