summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-06-14 14:50:36 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-06-14 14:50:36 +0000
commitbb0119256032a5ffe26b57690e28093823b3dba4 (patch)
treee7cd8bf8b932155505ea4b4c174f28430811c812 /qpid/cpp
parentd4410853b880cafc90de3be900a9b5f8d157fff3 (diff)
downloadqpid-python-bb0119256032a5ffe26b57690e28093823b3dba4.tar.gz
Ensure that we can't shutdown in the middle of writing a buffer
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@954497 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/client/RdmaConnector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/RdmaConnector.cpp b/qpid/cpp/src/qpid/client/RdmaConnector.cpp
index 3b4e87ddbd..504c5bd191 100644
--- a/qpid/cpp/src/qpid/client/RdmaConnector.cpp
+++ b/qpid/cpp/src/qpid/client/RdmaConnector.cpp
@@ -320,6 +320,7 @@ void RdmaConnector::send(AMQFrame& frame) {
// This is NOT only called in response to previously calling notifyPendingWrite
void RdmaConnector::writebuff(Rdma::AsynchIO&) {
// It's possible to be disconnected and be writable
+ Mutex::ScopedLock l(pollingLock);
if (!polling)
return;