From 39fd53bc06f35d1f29becdb993f7bbdffc361cda Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 24 Jan 2007 10:04:31 +0000 Subject: Don't close channel on connection (resulting in BrokerAdapter being deleted) until close request has been successfully sent. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@499332 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/lib/broker/BrokerAdapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp') diff --git a/cpp/lib/broker/BrokerAdapter.cpp b/cpp/lib/broker/BrokerAdapter.cpp index fda7d15784..585be5f79d 100644 --- a/cpp/lib/broker/BrokerAdapter.cpp +++ b/cpp/lib/broker/BrokerAdapter.cpp @@ -516,10 +516,10 @@ void BrokerAdapter::handleMethodInContext( try{ method->invoke(*serverOps, context); }catch(ChannelException& e){ - connection.closeChannel(getId()); connection.client->getChannel().close( context, e.code, e.toString(), method->amqpClassId(), method->amqpMethodId()); + connection.closeChannel(getId()); }catch(ConnectionException& e){ connection.client->getConnection().close( context, e.code, e.toString(), -- cgit v1.2.1