merged fix from libtorrent_aio

This commit is contained in:
Arvid Norberg 2012-11-04 03:08:43 +00:00
parent 6142acb4be
commit 5d21c6a1f4
1 changed files with 2 additions and 0 deletions

View File

@ -5204,6 +5204,8 @@ namespace libtorrent
boost::intrusive_ptr<torrent_info> torrent::get_torrent_copy()
{
if (!m_torrent_file->is_valid()) return boost::intrusive_ptr<torrent_info>();
// copy the torrent_info object
return boost::intrusive_ptr<torrent_info>(new torrent_info(*m_torrent_file));
}