summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-06-09 13:08:44 +0000
committerAlan Conway <aconway@apache.org>2008-06-09 13:08:44 +0000
commitae8f99317b826069ed895a5af70d1c2f298ea4f1 (patch)
treed0deb366ffa86e1f508f7e177de83c8671fb85d4 /qpid/cpp/src
parent865436044bceebaae348747dedbc126e2b22eb5d (diff)
downloadqpid-python-ae8f99317b826069ed895a5af70d1c2f298ea4f1.tar.gz
Missing lock in SessionManager::forget()
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@664695 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/SessionManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SessionManager.cpp b/qpid/cpp/src/qpid/broker/SessionManager.cpp
index 789e43b902..3466882a48 100644
--- a/qpid/cpp/src/qpid/broker/SessionManager.cpp
+++ b/qpid/cpp/src/qpid/broker/SessionManager.cpp
@@ -81,7 +81,10 @@ void SessionManager::detach(std::auto_ptr<SessionState> 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.