merged web seed peer_info bugfixes from RC_0_16
This commit is contained in:
parent
de7bad7774
commit
bd8a467ad9
|
@ -4317,6 +4317,7 @@ namespace libtorrent
|
|||
web->removed = true;
|
||||
return;
|
||||
}
|
||||
if (has_picker()) picker().clear_peer(&web->peer_info);
|
||||
m_web_seeds.erase(web);
|
||||
}
|
||||
|
||||
|
@ -7857,6 +7858,7 @@ namespace libtorrent
|
|||
, (boost::bind(&policy::peer::connection, boost::bind(&web_seed_entry::peer_info, _1)) == p));
|
||||
TORRENT_ASSERT(i != m_web_seeds.end());
|
||||
if (i == m_web_seeds.end()) return;
|
||||
if (has_picker()) picker().clear_peer(&i->peer_info);
|
||||
m_web_seeds.erase(i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue