summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/sys/rdma/RdmaIO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/sys/rdma/RdmaIO.cpp b/cpp/src/qpid/sys/rdma/RdmaIO.cpp
index 25301e9850..845e84eec3 100644
--- a/cpp/src/qpid/sys/rdma/RdmaIO.cpp
+++ b/cpp/src/qpid/sys/rdma/RdmaIO.cpp
@@ -210,8 +210,8 @@ namespace Rdma {
newState = NOTIFY_WRITE;
break;
case SHUTDOWN:
- // This is not allowed - we can't make any more writes as we shut the connection down.
- assert(oldState!=SHUTDOWN);
+ // We can get here because it is too hard to eliminate all races of stop() and notifyPendingWrite()
+ // just do nothing.
doReturn = true;
case DRAINED:
// This is not allowed - we can't make any more writes as we're draining the write queue.