merged web seed peer_info bugfixes from RC_0_16

This commit is contained in:
Arvid Norberg 2012-04-11 07:26:02 +00:00
parent de7bad7774
commit bd8a467ad9
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}