summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-06-23 20:02:41 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-06-23 20:02:41 +0000
commit843b3e5d27729be7b6f6299b468dec8a8d456aee (patch)
tree4be7b81a29db08c606e0108c377e6614977fc99e /cpp/src/qpid
parent043622065972dee6a008fa20cc70d0fb73e666d4 (diff)
downloadqpid-python-843b3e5d27729be7b6f6299b468dec8a8d456aee.tar.gz
Client side fix to make sure we don't schedule a disconnect
due to timeout when we are already disconnecting git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787814 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid')
-rw-r--r--cpp/src/qpid/client/Connector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/Connector.cpp b/cpp/src/qpid/client/Connector.cpp
index 1558f292aa..9eb487a7e7 100644
--- a/cpp/src/qpid/client/Connector.cpp
+++ b/cpp/src/qpid/client/Connector.cpp
@@ -241,7 +241,10 @@ void TCPConnector::close() {
}
void TCPConnector::abort() {
- aio->requestCallback(boost::bind(&TCPConnector::eof, this, _1));
+ // Can't abort a closed connection
+ if (!closed) {
+ aio->requestCallback(boost::bind(&TCPConnector::eof, this, _1));
+ }
}
void TCPConnector::setInputHandler(InputHandler* handler){