applied patch from and fixed #252, write_resume_data no longer throws when it shouldn't

This commit is contained in:
Arvid Norberg 2008-01-26 07:41:51 +00:00
parent 7faa922dc5
commit 442998f06d
1 changed files with 1 additions and 1 deletions

View File

@ -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<torrent> 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();