diff options
author | Andrew Stitcher <astitcher@apache.org> | 2010-01-21 06:19:41 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2010-01-21 06:19:41 +0000 |
commit | 80e2dfa491b0a19b61eff7fa107c9f6a869e50bb (patch) | |
tree | f12c9aed0d3038c6eff760053407250d03b9b0df /cpp | |
parent | a2cbe9afcfb85da7de0df8c5ae0bec09a5801dff (diff) | |
download | qpid-python-80e2dfa491b0a19b61eff7fa107c9f6a869e50bb.tar.gz |
Allow Connection to be closed whilst still connecting without error.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@901554 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/src/qpid/client/TCPConnector.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/TCPConnector.cpp b/cpp/src/qpid/client/TCPConnector.cpp index 2de139d5df..360d8c133c 100644 --- a/cpp/src/qpid/client/TCPConnector.cpp +++ b/cpp/src/qpid/client/TCPConnector.cpp @@ -133,7 +133,8 @@ bool TCPConnector::closeInternal() { bool ret = !closed; if (!closed) { closed = true; - aio->queueForDeletion(); + if (aio) + aio->queueForDeletion(); socket.close(); } return ret; |