From 80e2dfa491b0a19b61eff7fa107c9f6a869e50bb Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 21 Jan 2010 06:19:41 +0000 Subject: 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 --- cpp/src/qpid/client/TCPConnector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp') 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; -- cgit v1.2.1