From 33912a0fb7ab5b74fe94eddb01fe2dae8690d148 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 31 Mar 2009 18:01:12 +0000 Subject: [PATCH] invariant check fix --- src/peer_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 071487842..ab3d565eb 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -4194,7 +4194,7 @@ namespace libtorrent TORRENT_ASSERT(m_ses.has_peer((peer_connection*)this)); } - if (t && !m_disconnecting) + if (t && t->valid_metadata() && !m_disconnecting) { boost::optional p = t?downloading_piece_progress():boost::optional(); torrent_info const& ti = t->torrent_file();