summaryrefslogtreecommitdiff
path: root/qpid/cpp/lib/common/sys
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-01-18 08:11:12 +0000
committerGordon Sim <gsim@apache.org>2007-01-18 08:11:12 +0000
commitb83efc69f6c51ae4cf388b78830e4d853b662a7a (patch)
treee0f348a4ce4ebfd2fd2d64e626c2bbd8e981d368 /qpid/cpp/lib/common/sys
parentab1aa368449bf607fef98f19d19aaceaf4e31cc0 (diff)
downloadqpid-python-b83efc69f6c51ae4cf388b78830e4d853b662a7a.tar.gz
Close connection when connection.close is sent to client.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@497341 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/common/sys')
-rw-r--r--qpid/cpp/lib/common/sys/apr/LFSessionContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/lib/common/sys/apr/LFSessionContext.cpp b/qpid/cpp/lib/common/sys/apr/LFSessionContext.cpp
index f0804f6c72..9b12747a97 100644
--- a/qpid/cpp/lib/common/sys/apr/LFSessionContext.cpp
+++ b/qpid/cpp/lib/common/sys/apr/LFSessionContext.cpp
@@ -145,8 +145,8 @@ void LFSessionContext::stopProcessing(){
}
void LFSessionContext::close(){
- closing = true;
Mutex::ScopedLock l(writeLock);
+ closing = true;
if(!processing){
//allow pending frames to be written to socket
fd.reqevents = APR_POLLOUT;