fixed stats miscount when deleting files

This commit is contained in:
Arvid Norberg 2008-09-17 02:29:05 +00:00
parent 6b2ee1ba28
commit 26dea3c222
1 changed files with 1 additions and 0 deletions

View File

@ -1061,6 +1061,7 @@ namespace libtorrent
if (k->blocks[j] == 0) continue;
free_buffer(k->blocks[j]);
k->blocks[j] = 0;
--m_cache_stats.cache_size;
}
}
m_pieces.erase(i, m_pieces.end());