From 68a89507bc17df43b9efcfccf932351352a001b6 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 9 Oct 2008 03:33:14 +0000 Subject: [PATCH] mutex fix for dht status reporting --- src/kademlia/node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kademlia/node.cpp b/src/kademlia/node.cpp index c0d0fa784..3ce5a48a8 100644 --- a/src/kademlia/node.cpp +++ b/src/kademlia/node.cpp @@ -427,6 +427,7 @@ namespace void node_impl::status(session_status& s) { + mutex_t::scoped_lock l(m_mutex); s.active_requests.clear(); for (std::set::iterator i = m_running_requests.begin() , end(m_running_requests.end()); i != end; ++i)