summaryrefslogtreecommitdiff
path: root/cpp/src
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
commit29586367f102a16970c68459b8ea5c779f7cb2d7 (patch)
treee5f066fcfb1c3284ca692f498b1fb6373f2854e2 /cpp/src
parente5cdd98d3765bf41a9a6bbcb72470a8077a43a64 (diff)
downloadqpid-python-29586367f102a16970c68459b8ea5c779f7cb2d7.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/qpid@954497 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/client/RdmaConnector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/RdmaConnector.cpp b/cpp/src/qpid/client/RdmaConnector.cpp
index 3b4e87ddbd..504c5bd191 100644
--- a/cpp/src/qpid/client/RdmaConnector.cpp
+++ b/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;