forked from premiere/premiere-libtorrent
fix bug in hostname resolver
This commit is contained in:
parent
b1208c9f63
commit
57b00ae42e
|
@ -79,10 +79,8 @@ namespace libtorrent
|
||||||
for (cache_t::iterator i = m_cache.begin();
|
for (cache_t::iterator i = m_cache.begin();
|
||||||
i != m_cache.end(); ++i)
|
i != m_cache.end(); ++i)
|
||||||
{
|
{
|
||||||
cache_t::iterator e = i;
|
if (i->second.last_seen < oldest->second.last_seen)
|
||||||
++i;
|
oldest = i;
|
||||||
if (e->second.last_seen < oldest->second.last_seen)
|
|
||||||
oldest = e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the oldest entry
|
// remove the oldest entry
|
||||||
|
|
Loading…
Reference in New Issue