diff options
author | Alan Conway <aconway@apache.org> | 2008-06-09 13:08:44 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-06-09 13:08:44 +0000 |
commit | ae8f99317b826069ed895a5af70d1c2f298ea4f1 (patch) | |
tree | d0deb366ffa86e1f508f7e177de83c8671fb85d4 /qpid/cpp/src | |
parent | 865436044bceebaae348747dedbc126e2b22eb5d (diff) | |
download | qpid-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.cpp | 5 |
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. |