summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/ConnectionHandler.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-06 08:49:27 +0000
committerGordon Sim <gsim@apache.org>2007-08-06 08:49:27 +0000
commit8e159b2051510728f64f31c6b06e322cb2d7974d (patch)
tree2a9a5bdbbe652ce84bd25e6d1fe6ee251766be42 /cpp/src/qpid/client/ConnectionHandler.cpp
parent88be1f00a26a8b646774267eab662c640a246c1f (diff)
downloadqpid-python-8e159b2051510728f64f31c6b06e322cb2d7974d.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/client/ConnectionHandler.cpp')
-rw-r--r--cpp/src/qpid/client/ConnectionHandler.cpp2
1 files changed, 1 insertions, 1 deletions
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<ConnectionCloseOkBody>()) {
- setState(CLOSED);
if (onClose) {
onClose();
}
+ setState(CLOSED);
} else {
QPID_LOG(warning, "Received frame on channel zero while closing connection; frame ignored.");
}