summaryrefslogtreecommitdiff
path: root/qpid/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/broker/Broker.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp
index b550156c00..89c9c3fb37 100644
--- a/qpid/cpp/src/qpid/broker/Broker.cpp
+++ b/qpid/cpp/src/qpid/broker/Broker.cpp
@@ -747,11 +747,6 @@ void Broker::createObject(const std::string& type, const std::string& name,
bool durable = false;
std::string authMech, username, password;
- if (!getProtocolFactory(transport)) {
- QPID_LOG(error, "Transport '" << transport << "' not supported.");
- throw UnsupportedTransport(transport);
- }
-
for (Variant::Map::const_iterator i = properties.begin(); i != properties.end(); ++i) {
if (i->first == HOST) host = i->second.asString();
else if (i->first == PORT) port = i->second.asUint16();
@@ -765,6 +760,11 @@ void Broker::createObject(const std::string& type, const std::string& name,
}
}
+ if (!getProtocolFactory(transport)) {
+ QPID_LOG(error, "Transport '" << transport << "' not supported.");
+ throw UnsupportedTransport(transport);
+ }
+
std::pair<boost::shared_ptr<Link>, bool> rc;
rc = links.declare(name, host, port, transport, durable, authMech, username, password);
if (!rc.first) {