This commit is contained in:
Marcos Pinto 2007-10-10 19:43:03 +00:00
parent daaa79360a
commit 5a813106ba
1 changed files with 3 additions and 3 deletions

View File

@ -328,7 +328,7 @@ namespace detail
boost::tie(finished, progress) = processing->torrent_ptr->check_files();
{
mutex::scoped_lock l(m_mutex);
mutex::scoped_lock l2(m_mutex);
INVARIANT_CHECK;
@ -340,9 +340,9 @@ namespace detail
m_processing.pop_front();
// make sure the lock order is correct
l.unlock();
l2.unlock();
session_impl::mutex_t::scoped_lock l(m_ses.m_mutex);
l.lock();
l2.lock();
processing->torrent_ptr->abort();
processing.reset();