fix potential crash when peers get disconnected when we announce pieces to them

This commit is contained in:
Arvid Norberg 2011-05-25 16:06:51 +00:00
parent 2bb53ce6e8
commit d855bcc815
1 changed files with 1 additions and 1 deletions

View File

@ -2825,7 +2825,7 @@ namespace libtorrent
for (peer_iterator i = m_connections.begin(); i != m_connections.end();)
{
peer_connection* p = *i;
intrusive_ptr<peer_connection> p = *i;
++i;
p->announce_piece(index);
}