summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
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
commite7ea67d658414c0439c98b4eb097da0a480b309d (patch)
treea8857756cb18c6273223b8fefabdc409e123c669 /qpid/cpp/src
parent3001521d79ff30491db63773cf0b10081ab21521 (diff)
downloadqpid-python-e7ea67d658414c0439c98b4eb097da0a480b309d.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@787814 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/Connector.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/Connector.cpp b/qpid/cpp/src/qpid/client/Connector.cpp
index 1558f292aa..9eb487a7e7 100644
--- a/qpid/cpp/src/qpid/client/Connector.cpp
+++ b/qpid/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){