From 8e159b2051510728f64f31c6b06e322cb2d7974d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 6 Aug 2007 08:49:27 +0000 Subject: Fixed race in connection shutdown preventing Connector from being garbage collected on occasion. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@563067 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/ConnectionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/client/ConnectionHandler.cpp') diff --git a/cpp/src/qpid/client/ConnectionHandler.cpp b/cpp/src/qpid/client/ConnectionHandler.cpp index f20f597d1f..f47506d977 100644 --- a/cpp/src/qpid/client/ConnectionHandler.cpp +++ b/cpp/src/qpid/client/ConnectionHandler.cpp @@ -185,10 +185,10 @@ void ConnectionHandler::handle(AMQMethodBody::shared_ptr method) break; case CLOSING: if (method->isA()) { - setState(CLOSED); if (onClose) { onClose(); } + setState(CLOSED); } else { QPID_LOG(warning, "Received frame on channel zero while closing connection; frame ignored."); } -- cgit v1.2.1