fix potential crash when peers get disconnected when we announce pieces to them
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user