fix potential crash when peers get disconnected when we announce pieces to them
This commit is contained in:
parent
2bb53ce6e8
commit
d855bcc815
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue