From 371b18d855bcd43b7a88ae325bb94788ae87e15e Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Fri, 27 Jul 2007 20:12:50 +0000 Subject: [PATCH] connection queue fix --- libtorrent/src/connection_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/connection_queue.cpp b/libtorrent/src/connection_queue.cpp index 473a92920..859205ed0 100644 --- a/libtorrent/src/connection_queue.cpp +++ b/libtorrent/src/connection_queue.cpp @@ -159,7 +159,7 @@ namespace libtorrent ptime next_expire = max_time(); ptime now = time_now(); for (std::list::iterator i = m_queue.begin(); - i != m_queue.end();) + !m_queue.empty() && i != m_queue.end();) { if (i->connecting && i->expires < now) {