From 593af53aba2abb647209371f128e22d792dfb541 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 1 Nov 2008 18:01:00 +0000 Subject: [PATCH] fix for connection_queue::close() to maintain the correct m_num_connecting counter --- src/connection_queue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection_queue.cpp b/src/connection_queue.cpp index 220637409..560f31e59 100644 --- a/src/connection_queue.cpp +++ b/src/connection_queue.cpp @@ -125,6 +125,7 @@ namespace libtorrent // since that is a recepie for dead-locks entry e = m_queue.front(); m_queue.pop_front(); + if (e.connecting) --m_num_connecting; l.unlock(); try { e.on_timeout(); } catch (std::exception&) {} l.lock();