From 3ab1479fddcceb873748517692f0008d9615c22d Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Mon, 9 Jun 2008 13:08:44 +0000 Subject: Missing lock in SessionManager::forget() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@664695 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/SessionManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/broker/SessionManager.cpp b/cpp/src/qpid/broker/SessionManager.cpp index 789e43b902..3466882a48 100644 --- a/cpp/src/qpid/broker/SessionManager.cpp +++ b/cpp/src/qpid/broker/SessionManager.cpp @@ -81,7 +81,10 @@ void SessionManager::detach(std::auto_ptr session) { } } -void SessionManager::forget(const SessionId& id) { attached.erase(id); } +void SessionManager::forget(const SessionId& id) { + Mutex::ScopedLock l(lock); + attached.erase(id); +} void SessionManager::eraseExpired() { // Called with lock held. -- cgit v1.2.1