From 9222ac0989bffebe53706255314fa4c577d2b6d8 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 26 Mar 2008 12:14:18 +0000 Subject: Re-enable the establishment of inter-broker links. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@641281 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/PreviewConnection.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'cpp/src/qpid/broker/PreviewConnection.cpp') diff --git a/cpp/src/qpid/broker/PreviewConnection.cpp b/cpp/src/qpid/broker/PreviewConnection.cpp index 5a541b5624..f5a629248c 100644 --- a/cpp/src/qpid/broker/PreviewConnection.cpp +++ b/cpp/src/qpid/broker/PreviewConnection.cpp @@ -85,16 +85,11 @@ public: }; -PreviewConnection::PreviewConnection(ConnectionOutputHandler* out_, Broker& broker_, const std::string& mgmtId_) : +PreviewConnection::PreviewConnection(ConnectionOutputHandler* out_, Broker& broker_, const std::string& mgmtId_, bool isLink) : ConnectionState(out_, broker_), - adapter(*this), + adapter(*this, isLink), mgmtClosing(0), mgmtId(mgmtId_) -{ - initMgmt(); -} - -void PreviewConnection::initMgmt(bool asLink) { Manageable* parent = broker.GetVhostObject (); @@ -104,7 +99,7 @@ void PreviewConnection::initMgmt(bool asLink) if (agent.get () != 0) { - if (asLink) { + if (isLink) { mgmtWrapper = std::auto_ptr(new MgmtLink(this, parent, agent, mgmtId)); } else { mgmtWrapper = std::auto_ptr(new MgmtClient(this, parent, agent, mgmtId)); -- cgit v1.2.1