asserts for unchoke slot handling

This commit is contained in:
Arvid Norberg
2008-10-14 02:03:54 +00:00
parent cb1fce0d62
commit fdadccf7a2
2 changed files with 2 additions and 0 deletions

View File

@@ -1417,6 +1417,7 @@ namespace aux {
, end(m_connections.end()); i != end; ++i)
{
peer_connection* p = i->get();
TORRENT_ASSERT(p);
torrent* t = p->associated_torrent().lock().get();
if (!p->peer_info_struct()
|| t == 0