From 278c1f91c0d7421dbe7a48c6954b800367e5f743 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 21 Feb 2010 09:03:56 +0000 Subject: [PATCH] fix typo in previous check-in --- src/disk_io_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disk_io_thread.cpp b/src/disk_io_thread.cpp index 352a10e58..ef8bfb125 100644 --- a/src/disk_io_thread.cpp +++ b/src/disk_io_thread.cpp @@ -1652,14 +1652,14 @@ namespace libtorrent } jl.unlock(); - mutex_t::scoped_lock l(m_piece_mutex); + mutex::scoped_lock l(m_piece_mutex); for (cache_t::iterator i = m_read_pieces.begin(); i != m_read_pieces.end();) { if (i->storage == j.storage) { - free_piece(*i, l); + free_piece(const_cast(*i), l); i = m_read_pieces.erase(i); } else