From 5d21c6a1f4650bbc72b5c2e5d76c2a1f48a6f0d4 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 4 Nov 2012 03:08:43 +0000 Subject: [PATCH] merged fix from libtorrent_aio --- src/torrent.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/torrent.cpp b/src/torrent.cpp index 738347970..a465641e7 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -5204,6 +5204,8 @@ namespace libtorrent boost::intrusive_ptr torrent::get_torrent_copy() { + if (!m_torrent_file->is_valid()) return boost::intrusive_ptr(); + // copy the torrent_info object return boost::intrusive_ptr(new torrent_info(*m_torrent_file)); }