merged fix from libtorrent_aio
This commit is contained in:
@@ -5204,6 +5204,8 @@ namespace libtorrent
|
|||||||
|
|
||||||
boost::intrusive_ptr<torrent_info> torrent::get_torrent_copy()
|
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
|
// copy the torrent_info object
|
||||||
return boost::intrusive_ptr<torrent_info>(new torrent_info(*m_torrent_file));
|
return boost::intrusive_ptr<torrent_info>(new torrent_info(*m_torrent_file));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user