connection queue fix

This commit is contained in:
Marcos Pinto 2007-07-27 20:12:50 +00:00
commit 371b18d855

View file

@ -159,7 +159,7 @@ namespace libtorrent
ptime next_expire = max_time(); ptime next_expire = max_time();
ptime now = time_now(); ptime now = time_now();
for (std::list<entry>::iterator i = m_queue.begin(); for (std::list<entry>::iterator i = m_queue.begin();
i != m_queue.end();) !m_queue.empty() && i != m_queue.end();)
{ {
if (i->connecting && i->expires < now) if (i->connecting && i->expires < now)
{ {