connection queue fix

This commit is contained in:
Marcos Pinto 2007-07-27 20:12:50 +00:00
parent f80f499135
commit 371b18d855
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ namespace libtorrent
ptime next_expire = max_time();
ptime now = time_now();
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)
{