forked from premiere/premiere-libtorrent
removed incorrect assert
This commit is contained in:
parent
6bb24bea80
commit
68e9bf618f
|
@ -354,7 +354,9 @@ namespace libtorrent
|
||||||
{
|
{
|
||||||
std::list<web_seed_entry>::iterator i = std::find_if(m_web_seeds.begin(), m_web_seeds.end()
|
std::list<web_seed_entry>::iterator i = std::find_if(m_web_seeds.begin(), m_web_seeds.end()
|
||||||
, (boost::bind(&web_seed_entry::connection, _1) == p));
|
, (boost::bind(&web_seed_entry::connection, _1) == p));
|
||||||
TORRENT_ASSERT(i != m_web_seeds.end());
|
// this happens if the web server responded with a redirect
|
||||||
|
// or with something incorrect, so that we removed the web seed
|
||||||
|
// immediately, before we disconnected
|
||||||
if (i == m_web_seeds.end()) return;
|
if (i == m_web_seeds.end()) return;
|
||||||
TORRENT_ASSERT(i->connection);
|
TORRENT_ASSERT(i->connection);
|
||||||
i->connection = 0;
|
i->connection = 0;
|
||||||
|
|
Loading…
Reference in New Issue