From 442998f06dc4f12582bd7ec7e07b5b5fb028a258 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 26 Jan 2008 07:41:51 +0000 Subject: [PATCH] applied patch from and fixed #252, write_resume_data no longer throws when it shouldn't --- src/torrent_handle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torrent_handle.cpp b/src/torrent_handle.cpp index 03861de58..635390537 100755 --- a/src/torrent_handle.cpp +++ b/src/torrent_handle.cpp @@ -503,7 +503,7 @@ namespace libtorrent session_impl::mutex_t::scoped_lock l(m_ses->m_mutex); mutex::scoped_lock l2(m_chk->m_mutex); - boost::shared_ptr t = m_ses->find_torrent(m_info_hash).lock(); + torrent* t = find_torrent(m_ses, m_chk, m_info_hash); if (!t || !t->valid_metadata()) #ifdef BOOST_NO_EXCEPTIONS return entry();